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

TOPIC:

Save Annotation PDF in Android 5 years 11 months ago #13743

  • jzuritag
  • jzuritag's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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

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

Save Annotation PDF in Android 5 years 11 months ago #13744

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
please try :
m_doc.Save();

For more info check this : www.radaeepdf.com/documentation/javadocs...Document.html#Save--

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

Save Annotation PDF in Android 5 years 11 months ago #13745

  • jzuritag
  • jzuritag's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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,

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

Save Annotation PDF in Android 5 years 11 months ago #13747

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
to get all the annotation in a document, you need to do a simple loop like the following:
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();
}

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

Last edit: by Davide.
  • Page:
  • 1
Powered by Kunena Forum