I am using the rectangle annot to determine its coordinates (X, Y, Width, Height) to replace it with a signature field. This works fine except if the page has been rotated because all values are the other way around.

This is how I determine the coordinates of the rectangle annot in VB .NET:
Code: Select all
PDFXCViewer.DoDocumentVerb(_MainPresenter.Model.PDocID, "Pages[" + PDPage.ToString + "]", "GetAnnotRect", _oDataIn, _oDataOut, 0)
In PDF Structure, I can see this by the parameter /Rotate from the Mediabox but I do not know how I get this out with the PDF-XChange Viewer control.
Code: Select all
5 0 obj
<<
/Type /Page
/Annots [10 0 R 11 0 R]
/Parent 3 0 R
/Rotate -90
/Contents 12 0 R
/MediaBox [0 0 842 595]
/Resources 13 0 R
>>
endobj
Best regards,
Karl