Back to Articles List

I have a problem with SetDocumentInfo.

Problem:

I am having a problem with "SetDocumentInfo".

I try to set the document info of a PDF, but it can only be applied to newly generated documents.
Is there another reason why? Because I load an existing PDF file, and merge that file, with several other PDF files.
So I don't create a new PDF, all without user interaction.

Resolution:

You should call one of these functions with the document you want to save to disk.

Use either: 

PXCp_SetDocumentInfoW (Topic 3.1.2.11, PDF-Tools4SDK.pdf, pg. 292): stores standard information field data regarding the structure of a pdf object (for example when using a mouse in Windows Explorer and selecting a file - this information becomes viewable when you 'right click' and select the 'Properties' option). 

PXCp_SetDocumentInfoExW (Topic 3.1.2.13, PDF-Tools4SDK.pdf, pg. 293): stores additional information to the structure of a pdf object (for example when using a mouse in Windows Explorer and selecting a file - this information becomes viewable when you 'right click' and select the 'Properties' option).

Was this article helpful?
Yes No Somewhat