- Posts: 6
- Thank you received: 0
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
- scott2srikanth
- Topic Author
- Offline
- New Member
-
Less
More
11 years 3 months ago #9005
by scott2srikanth
Saving Annotation (ink) on permanently on PDF was created 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)?
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)?
11 years 3 months ago #9006
by Davide
Replied by Davide on topic Saving Annotation (ink) on permanently on PDF
Hi,
yes you should use
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.
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.
- rohitgarg2990
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
IP: 192.168.0.71
8 years 9 months ago #13183
by rohitgarg2990
Replied by rohitgarg2990 on topic Saving Annotation (ink) on permanently on PDF
It would be great help if you can tell where exactly to call this method.
IP: 192.168.0.71
8 years 9 months ago #13184
by Davide
Replied by Davide on topic Saving Annotation (ink) on permanently on PDF
Hi,
it dipends on your needs.
For example you can lock annot after adding it with something like this :
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);
- rohitgarg2990
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
IP: 192.168.0.71
8 years 9 months ago #13211
by rohitgarg2990
Replied by rohitgarg2990 on topic Saving Annotation (ink) on permanently on PDF
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.
IP: 192.168.0.71
8 years 9 months ago #13215
by nermeen
Replied by nermeen on topic Saving Annotation (ink) on permanently on PDF
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.
but it will flatten all the annotations contained in this page
This method requires the premium license.
Time to create page: 0.426 seconds