>Additional questions :
># Does the PrintImageLocation class perform a transformation of the
>coordinates to a system where 0.0 is on the upperLeft corner  near this
>code (in processOperator() method ) :
>                    float ph = page.findMediaBox().getHeight();
>                    float pw = page.findMediaBox().getWidth();
>                    Matrix ctm =
>getGraphicsState().getCurrentTransformationMatrix();
>                    double rotationInRadians =(page.findRotation() *
>Math.PI)/180;  ...
>Or is it just in case of a rotation ?
PrintImageLocation computes the scaling-factors by inverting the 
currentRotationMatrix and
of course the rotation is taken into account for this. But usually the 
page-rotation isn't
relevant for pages with portrait orientation.

>Are the scaling factors taken into account at this level too ? So,  I
>could bypass this and deal with my problem easier.
I guess the output contains the image-dimensions on the page.

># As I want to draw annotation on what I've found, I guess I have to
>transform to a system where 0.0 is LowerRight corner of the PDF page. Am
>I right ? (and probably do some metric conversions also)
On pages without rotation the 0,0-reference is the lower left corner.

BR,
Andreas





----------------------------------------------------------------
- Geschaeftsfuehrung: Chittur Ramakrishnan (Vorsitzender),
Stefan Niehusmann -
- Sitz der Gesellschaft: Dortmund -
- Eingetragen beim Amtsgericht Dortmund -
- Handelsregister-Nr. HR B 21222 -
- USt.-IdNr. DE 2588 96 719 -

Reply via email to