Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Saving Annotation (ink) on permanently on PDF 8 years 10 months ago #9005

  • scott2srikanth
  • scott2srikanth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Can I save signature (ink annotation) on PDF permanently?

I used
m_doc.Save();

and able to save the annotations, but these the annotation are editable when ever I open the PDF.

Can we stop preventing editing saved annotation generally(ink annotations)?

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

Saving Annotation (ink) on permanently on PDF 8 years 10 months ago #9006

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
yes you should use
m_annot.SetLocked(true);

This method has been fixed in the last beta version : was corrupting text fields rendering.
You can safely use the beta, we are expecting to promote to stable version friday next week.
The following user(s) said Thank You: scott2srikanth

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

Saving Annotation (ink) on permanently on PDF 6 years 4 months ago #13183

  • rohitgarg2990
  • rohitgarg2990's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
It would be great help if you can tell where exactly to call this method.

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

Saving Annotation (ink) on permanently on PDF 6 years 4 months ago #13184

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
it dipends on your needs.
For example you can lock annot after adding it with something like this :
Annotation annot = page.GetAnnot(page.GetAnnotCount() - 1);     //get last added annot
annot.SetLocked(true);

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

Saving Annotation (ink) on permanently on PDF 6 years 4 months ago #13211

  • rohitgarg2990
  • rohitgarg2990's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi, i tried your solution before saving the pdf, but it did not work. My exact requirement is that i want to make the annotation just like text so that if someone opens it in pdf reader and they won't be able to delete that annotation. Right now, if i save it and open it on laptop, i can remove the annotation but text i can not remove.

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

Saving Annotation (ink) on permanently on PDF 6 years 4 months ago #13215

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can call Page.FlatAnnots -> this will make the annotations part of the page content and cannot be removed.
but it will flatten all the annotations contained in this page
This method requires the premium license.

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

Powered by Kunena Forum