PDF form is always marked as modified after open

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

KarlTH
User
Posts: 57
Joined: Mon Aug 01, 2005 2:33 pm

PDF form is always marked as modified after open

Post by KarlTH »

Hi Tracker-Support,

I have a strange problem, if I open PDF forms (PDF with formfields) the PDF document property "Modified" immediately is TRUE although I have not changed anything. At normal PDFs the PDF document property "Modified" is always FALSE after open but at PDF forms it is always TRUE.

This is how I detect if the PDF has been modified after open:

Code: Select all

PDFXCViewer.GetProperty("Documents[#" + CurrentPDocID.ToString + "].Modified", _oDataOut)
Is this normal that a PDF form is always marked as modified after open? If yes, it would help me if I can differ between a normal PDF or a PDF form. I have not found anything in the SDK documentation for differing between a normal PDF or a PDF form neither to check if the PDF has formfields.

Thanks for your help!


Best regards,

Karl
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: PDF form is always marked as modified after open

Post by Vasyl - PDF-XChange »

Hi Karl.

It occurs because this document contains form-fields that are related to widgets(visual representation of form-field) BUT the pages do not contain such widgets. In this case the viewer must fix the document structure and consequently modifies the document - if such inconsistencies did not exist - this would not happen.


In the next build we will add an 'accommodation' to workaround that.

Currently you may use this workaround:
PDFXCViewer.SetProperty("Documents[#" + CurrentPDocID.ToString + "].Modified", false);

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.
KarlTH
User
Posts: 57
Joined: Mon Aug 01, 2005 2:33 pm

Re: PDF form is always marked as modified after open

Post by KarlTH »

Hello Vasyl,

thank you for help! I was afraid you would confirm that a PDF form is always marked as modified. :(
But it is good to hear you will fix this problem in the next build. In the meantime I can live with the workaround! :wink:


Thank you!

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

Re: PDF form is always marked as modified after open

Post by Stefan - PDF-XChange »

Hi Karl,

Glad to hear the workaround is acceptable for now!

Regards,
Stefan