Hi! My colleagues and I are writing an iOS application to draw annotations
onto PDFs on the device, and ,after some trouble getting everything to
compile, we have it working pretty great with PoDoFo!

We have all of our annotation types drawing onto the PDF except for one;
the line annotation. We are storing our annotation line as a custom class
with a PointA and PointB for the start and end of the line as well as a
bounding rectangle, but there doesn't seem to be anywhere to actually
specify the two points with the ePdfAnnotation_Line creation. This is how
we're attempting to create the line right now:

PdfAnnotation *annot;

AMLine *line = (AMLine *)annotation;

float minX = MIN(line.pointA.x, line.pointB.x);

float minY = MIN(line.pointA.y, line.pointB.y);

float maxX = MAX(line.pointA.x, line.pointB.x);

float maxY = MAX(line.pointA.y, line.pointB.y);

PdfRect bounds(minX, minY, maxX - minX, maxY - minY);

annot = page->CreateAnnotation(ePdfAnnotation_Line, bounds);


We can't find anything that we can do differently that will get this to
actually draw the line. Is there something special that needs to be done
for line annotations?

Thank you,

Eric
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to