user185776
user185776

Reputation:

Edit Metadata of PDF File with C/C++?

Could anyone please provide me a sample C/C++ code to read and edit PDF Metadata?

If it is XMP, what else to do?

Upvotes: 0

Views: 3804

Answers (4)

Seegras
Seegras

Reputation: 31

https://github.com/hfiguiere/exempi -- C-library to read and write XMP.

Upvotes: 1

muruge
muruge

Reputation: 4133

If you haven't tried XMPToolkit yet, give it a shot and see if it meets your needs.

Upvotes: 0

cuteCAT
cuteCAT

Reputation: 2311

The XMP SDK from adobe does not read/write metadata of PDF files. PDF reading/writing is a complicated task. Your best bet is to use a third party PDF library, or commands like pdfleo.

Upvotes: 0

sbi
sbi

Reputation: 224179

If it's XMP, I think there's an SDK available from Adobe. But beware, PDF metadata has a long history and isn't only stored in XMP.

You might best be off using a library that allows PDF manipulation. There are several commercial ones available. I have no idea whether there's something usable available for free.

Upvotes: 1

Related Questions