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
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:
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.
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.
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!