How to set/get document Custom Properties?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

How to set/get document Custom Properties?

Post by DSSavant »

In Acrobat, select Properties from the File Menu. The Document Properties dialog is now showing. Select the Custom tab. Here I am able to add/delete "Custom Properties". This is nice because it allows me to store information in the PDF that I can then refer to on a later date (problematically that is).

I'm at a loss of how to do this with the Viewer SDK or even the Viewer itself.

If not doable then maybe you can help me solve this problem -- I need to store Key/Value information in a PDF such that I can reference it at a date. I will not always be on the same machine or in the same universe. The information must be stored in the PDF. Storing something in a hidden annotation is not appealing for obvious reasons. Ditto for using Form Fields for storage.

Any ideas?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to set/get document Custom Properties?

Post by Stefan - PDF-XChange »

Hello DSSavant

I believe I have seen this question before, but I think the answer then was that it is not possible with our Viewer (or SDK for it).
I will ask the dev guys again today, and see what they can say on the topic.

Best,
Stefan
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to set/get document Custom Properties?

Post by DSSavant »

Anything from the Development team on this item yet?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to set/get document Custom Properties?

Post by Stefan - PDF-XChange »

Hello DSSavant,

Asked again, and will try to get the answer in the next hour. :)

Best,
Stefan
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to set/get document Custom Properties?

Post by Stefan - PDF-XChange »

Hi DSSavant,

Got the answer directly from the project leader, and I am afraid that it was:
"There is no way to achieve this with our products"

Best,
Stefan
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to set/get document Custom Properties?

Post by DSSavant »

I understand. I will figure out a nasty hack to work around this.

Please consider this a request to add it. The ability for document systems to store metadata in a PDF for auditing, history, security, etc., is huge.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to set/get document Custom Properties?

Post by Stefan - PDF-XChange »

Ok :)

And please don't forget to share this (so we can all see how nasty it is :P)

Cheers,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to set/get document Custom Properties?

Post by Vasyl - PDF-XChange »

Hi, DSSavant.
Please consider this a request to add it. The ability for document systems to store metadata in a PDF for auditing, history, security, etc., is huge.
Please wait for V3, you will be able to do it in the new version only.

Currently there does exist another way: you may use XCPRO40.DLL library from our PDF-XChange Tools API (https://www.pdf-xchange.com/product/pdf-tools-sdk) to store/restore your custom data (atrings, numbers, arrays, streams) to/from pdf-document.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.