Am 24.10.2016 um 15:51 schrieb Takuya Takaira:
I’m using PDFbox for my study about layout analysis in lab.
Now, I’m trying to create some utility to obtain information(Text position,
path, image) from PDF.
In text and path, i cloud great result i expected.
However, in image i have some problem and if someone have some idea, please
tell.
[ Thing I want to do ]
1.Extract Raw Image data(JPEG, PNG …) : Success
2.Extract Position and Size of Image in PDF : some issues
Some images in pdf rotated, but i cloun’t recognize which image rotated in
program.
[ Things I want to know ]
1.How to check if image is rotated in pdf
Analyze the CTM:
Matrix ctmNew = getGraphicsState().getCurrentTransformationMatrix();
2.How to get obtain clipping area.
This will get it:
getGraphicsState().getCurrentClippingPath();
Tilman
finally, I’m trying to use following sample.
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java?view=log
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java?view=log
From Takuya Takaira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]