0 1 2 3
* (x1,y1) *************** (x2,y2)
* * *
* * *
* 4 5 * * 6 7
* (x3,y3) *************** (x4,y4)
is this correct order for float array for PdfAnnotation or PDFAnnotation? i tried creating a pdf annotation but the annotations are concave not convex like the those generally created by using adobe reader or acrobat
The Pdf specification states on the quadrilateral coordinates:
Thus:
What I found using iText was the following:
Using this order made my highlights output with the same convex effect as the highlight annotation tool in Adobe Acrobat.
I had the same problem with iText 2.1.7 and it was driving me crazy. The order jrubins described did not work for me, it produced concave annotations. Eventually i found the right order, which is lr > ll > ur > ul .