- Posts: 49
- Thank you received: 0
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
IP: 192.168.0.71
11 years 6 months ago - 11 years 6 months ago #6850
by Rossi
Save annotations and draw it in new pdf was created 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?
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.
IP: 192.168.0.71
11 years 6 months ago #6853
by radaee
Replied by radaee on topic Save annotations and draw it in new pdf
there are methods in PDFPage class,
like [PDFPage addAnnotXXX];
like [PDFPage addAnnotXXX];
IP: 192.168.0.71
11 years 6 months ago #6855
by Rossi
Replied by Rossi on topic Save annotations and draw it in new pdf
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.
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.
IP: 192.168.0.71
11 years 6 months ago #6868
by radaee
Replied by radaee on topic Save annotations and draw it in new pdf
[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
[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
IP: 192.168.0.71
11 years 6 months ago - 11 years 6 months ago #6878
by Rossi
Replied by Rossi on topic Save annotations and draw it in new pdf
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?
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.
IP: 192.168.0.71
11 years 5 months ago #7001
by Gracanin
Replied by Gracanin on topic Save annotations and draw it in new pdf
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