Save annotations and draw it in new pdf - 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 iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC: Save annotations and draw it in new pdf

Save annotations and draw it in new pdf 4 years 4 months ago #6850

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
Hi, i must save my annotation and redraw it in a new pdf.
I use the latest beta sdk and I successfully save my annotation data into my database, but to create the PDFAnnot object and insert it into the new pdf i have some problem.
How i can correctly create the annotation object and add it into a new pdf?

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

Last edit: by Abdikayrov.

Save annotations and draw it in new pdf 4 years 4 months ago #6853

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 847
  • Karma: 43
  • Thank you received: 12
there are methods in PDFPage class,
like [PDFPage addAnnotXXX];

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

Save annotations and draw it in new pdf 4 years 4 months ago #6855

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
Ok, but i don't understand how to create PDFPath object from my saved point.
I suppose that i must use this function
-(bool)setInkPath:(PDFPath *)path
to assign path to PDFAnnot so i need to have the PDFAnnot object.

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

Save annotations and draw it in new pdf 4 years 4 months ago #6868

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 847
  • Karma: 43
  • Thank you received: 12
[PDFPath moveto:x:y];//set current point
[PDFPath lineto:x:y];//draw line start from current point, and end to x, y
[PDFPath CurveTo:x1:y1:x2:y2:x3:y3];//draw bezier curve, start from current point, and end to x3, y3

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

Save annotations and draw it in new pdf 4 years 4 months ago #6878

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
I succeed to redraw ink annotation, rect annotation and ellipse annotation but i have a problem with line annotation, highlight annotation and underline annotation.
I'm able to get the rect of the annotation, but how can i get the start and the end point of the annotation?
And for bitmap annotation how can i get the image added?

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

Last edit: by Abdikayrov.

Save annotations and draw it in new pdf 4 years 3 months ago #7001

  • Gracanin
  • Gracanin's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
Could you share how you managed to save the annotations into the database? Just started doing the same thing so I'm hoping to avoid trial and error. Thanks

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum