Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Save annotations and draw it in new pdf

More
IP: 192.168.0.71 11 years 6 months ago - 11 years 6 months ago #6850 by Rossi
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?
Last edit: 11 years 6 months ago by Abdikayrov.
More
IP: 192.168.0.71 11 years 6 months ago #6853 by radaee
there are methods in PDFPage class,
like [PDFPage addAnnotXXX];
More
IP: 192.168.0.71 11 years 6 months ago #6855 by Rossi
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.
More
IP: 192.168.0.71 11 years 6 months ago #6868 by radaee
[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
More
IP: 192.168.0.71 11 years 6 months ago - 11 years 6 months ago #6878 by Rossi
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?
Last edit: 11 years 6 months ago by Abdikayrov.
More
IP: 192.168.0.71 11 years 5 months ago #7001 by Gracanin
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
Time to create page: 0.380 seconds
Powered by Kunena Forum