Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Saving Annotation (ink) on permanently on PDF

More
11 years 3 months ago #9005 by scott2srikanth
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)?
More
11 years 3 months ago #9006 by Davide
Hi,
yes you should use
Code:
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.
More
IP: 192.168.0.71 8 years 9 months ago #13183 by rohitgarg2990
It would be great help if you can tell where exactly to call this method.
More
IP: 192.168.0.71 8 years 9 months ago #13184 by Davide
Hi,
it dipends on your needs.
For example you can lock annot after adding it with something like this :
Code:
Annotation annot = page.GetAnnot(page.GetAnnotCount() - 1); //get last added annot annot.SetLocked(true);
More
IP: 192.168.0.71 8 years 9 months ago #13211 by rohitgarg2990
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.
More
IP: 192.168.0.71 8 years 9 months ago #13215 by nermeen
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.
Time to create page: 0.426 seconds
Powered by Kunena Forum