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.
Modified Flag being set but no changes made
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Modified Flag being set but no changes made
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Modified Flag being set but no changes made
Hi, docu-track99.
I cannot reproduce it with latest build. Please try last build (2.5.201)...
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Modified Flag being set but no changes made
Hello,
I have verified the problem still exists with version 201. Please try the attached example application, this shows the problem.
Thanks.
I have verified the problem still exists with version 201. Please try the attached example application, this shows the problem.
Thanks.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Modified Flag being set but no changes made
Sorry here is the test app.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Modified Flag being set but no changes made
Hi, docu-track99.
Your method is not correct. To detect document modification use:
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
Your method is not correct. To detect document modification use:
Code: Select all
CoPDFXCview1.GetDocumentProperty docId, "Modified", vDataOut, 0
nModified = CLng(vDataOut)
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Modified Flag being set but no changes made
Thanks for the response. Much appreciated, we will use the method suggested.
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am