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?
Ok, but i don't understand how to create PDFPath object from my saved point.
I suppose that i must use this function
to assign path to PDFAnnot so i need to have the PDFAnnot object.
[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
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?