Save annotations and insert them on next load - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Save annotations and insert them on next load

Save annotations and insert them on next load 3 years 8 months ago #7005

  • Gracanin
  • Gracanin's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
Hello,

I managed to save a rectangle annotation. I don't want to save the annotation to the PDF instead I want to save it to a database.

How can I load all annotations from database and insert them into the PDF after opening the PDF file?

1. Open PDF
2. Load annotations for PDF
3. Load thumbnails

for example,
I have a saved rectangle (x1, y1, x2, y2) on page 6. How do I tell the library to add the rectangle to page 6 if I'm currently at page 0 (front page)?
The following user(s) said Thank You: sultan

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

Save annotations and insert them on next load 3 years 8 months ago #7006

  • Gracanin
  • Gracanin's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
Also, can I save text highlights and notes externally as well?

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

Save annotations and insert them on next load 3 years 4 months ago #7948

  • marais
  • marais's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Have you had any resolve on this? Im also trying to load saved rectangle.

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

Save annotations and insert them on next load 3 years 4 months ago #7949

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
for rectangle annotation:
save: record pageno and rect in PDF coordinate to DB.
load: load rect then, convert to DIB coordinate.
for markup(highlight and others) annotation:
save: record pageno and 2 points(start and end) in PDF coordinate.
load: load 2 points then, convert to DIB coordinate.

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

Last Edit: by .

Save annotations and insert them on next load 3 years 4 months ago #7967

  • marais
  • marais's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I already have the loaded coordinates from the db. Is there a method to generate this DIB coordinate object?

Also when I have this DIB coordinate is there a method available i can pass this into to draw this hihglight on the required page?

Regards

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

Save annotations and insert them on next load 3 years 4 months ago #7969

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
PDFVPage vpage = PDFView.vGetPage(pageno);
dibx = vpage.ToDIBX(pdfx);
diby = vpage.ToDIBY(pdfy);
viewx = vpage.GetVX(PDFView.vGetX()) + dibx;
viewy = vpage.GetVY(PDFView.vGetY()) + diby;

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

  • Page:
  • 1
Powered by Kunena Forum