Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Planned SDK features
  • Page:
  • 1

TOPIC:

pdf document changes after saving 2 years 6 months ago #15642

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Hello Radaee. There was a problem after saving the document. If you compare the original document and the document after saving by content, then unknown data appears that interfere with further actions on EDS(Electronic Digital Signature), because the documents are not the same. The document changes even when I don't change (save) anything in the annotations - annot.SetName (data)); ), the changes happen after document.Save() fires. Is there anything you can do about this so that the document doesn't change after document.Save ()? Thanks.

Please Log in or Create an account to join the conversation.

Last edit: by MaxM.

pdf document changes after saving 2 years 6 months ago #15643

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
It's normal behaviour that different PDF engines handle inner files' tree differently.
If you've a signed document you should save it because any save will change nodes ids and low level metadatas.

Is there any reason why need to invoke the Save() even when any change is applied to the document?
 
The following user(s) said Thank You: MaxM

Please Log in or Create an account to join the conversation.

pdf document changes after saving 2 years 6 months ago #15644

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Thanks for the answer. Then one more question: is it necessary to call document.Save() after the current how do we change the data (content) of the annotations of this document?

Please Log in or Create an account to join the conversation.

pdf document changes after saving 2 years 6 months ago #15645

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Your case is more clear now.

To store annotations you shall Save().
Saving annotations you're altering the PDF file and the signature is invalided.

No way to alter the PDF structure maintaining the signature valid.
The following user(s) said Thank You: MaxM

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum