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

Save Annotation PDF in Android

More
IP: 192.168.0.71 7 years 10 months ago #13743 by jzuritag
Hello!

I have a problem when I try to save my annotations in the pdf file.
How could I save it? Any idea? I don't find a save method, in Page.save()?¿

Best,
Juanfran
More
IP: 192.168.0.71 7 years 10 months ago #13744 by Davide
Hi,
please try :
Code:
m_doc.Save();

For more info check this : www.radaeepdf.com/documentation/javadocs...Document.html#Save--
More
IP: 192.168.0.71 7 years 10 months ago #13745 by jzuritag
Hello,

Thanks for you reply!
I was using that method, m_doc.Save() but I thought that it dosen't work!!

How could I recover the annotations when I open the doc?

Thanks again
Best,
More
IP: 192.168.0.71 7 years 10 months ago - 7 years 10 months ago #13747 by Davide
Hi,
to get all the annotation in a document, you need to do a simple loop like the following:
Code:
for (int i = 0; i < m_doc.GetPageCount(); i++) { Page page = m_doc.GetPage(i); page.ObjsStart(); for (int j = 0; j < page.GetAnnotCount(); j++) { Annotation annot = page.GetAnnot(j); } page.Close(); }
Last edit: 7 years 10 months ago by Davide.
Time to create page: 0.415 seconds
Powered by Kunena Forum