Modified Flag being set but no changes made

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

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Modified Flag being set but no changes made

Post by docu-track99 »

Hello,

When we open the attached document in PDF-XChange viewer control the 'modified' property is set to true even when we make no changes to the file. We have tested this using the .199 version of the component. I have attached the document that we used for our test. Please note this is an adobe spec 1.7 document and our tests show that pre 1.7 documents behave properly.

Thanks.
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: Modified Flag being set but no changes made

Post by Vasyl - PDF-XChange »

Hi, docu-track99.

I cannot reproduce it with latest build. Please try last build (2.5.201)...
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.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Modified Flag being set but no changes made

Post by docu-track99 »

Hello,

I have verified the problem still exists with version 201. Please try the attached example application, this shows the problem.

Thanks.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Modified Flag being set but no changes made

Post by docu-track99 »

Sorry here is the test app.
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: Modified Flag being set but no changes made

Post by Vasyl - PDF-XChange »

Hi, docu-track99.

Your method is not correct. To detect document modification use:

Code: Select all

CoPDFXCview1.GetDocumentProperty docId, "Modified", vDataOut, 0
nModified = CLng(vDataOut)
In your example the Specver17.pdf contains some errors in pdf-structure and viewer enables the 'Save' UI-Command for fast re-save ability on this document for end-users...

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.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Modified Flag being set but no changes made

Post by docu-track99 »

Thanks for the response. Much appreciated, we will use the method suggested.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Modified Flag being set but no changes made

Post by Stefan - PDF-XChange »

:)