RadaeePDF.com :: Topic: Saving Annotation (ink) on permanently on PDF (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Saving Annotation (ink) on permanently on PDF

Saving Annotation (ink) on permanently on PDF 2 years 6 months ago #9005

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)?
The administrator has disabled public write access.

Saving Annotation (ink) on permanently on PDF 2 years 6 months ago #9006

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 717
  • Thank you received: 56
  • Karma: 16
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 administrator has disabled public write access.
The following user(s) said Thank You: scott2srikanth

Saving Annotation (ink) on permanently on PDF 1 week 2 days ago #13183

It would be great help if you can tell where exactly to call this method.
The administrator has disabled public write access.

Saving Annotation (ink) on permanently on PDF 1 week 1 day ago #13184

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 717
  • Thank you received: 56
  • Karma: 16
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);
The administrator has disabled public write access.

Saving Annotation (ink) on permanently on PDF 3 days 2 hours ago #13211

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.
The administrator has disabled public write access.

Saving Annotation (ink) on permanently on PDF 1 day 22 hours ago #13215

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 49
  • Karma: 18
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.
The administrator has disabled public write access.
Powered by Kunena Forum