matrix - itext correctly get each image position within page or document -
Using it with I'm removing text and images from PDF files for my purpose I use text and images Make an HTML file by doing Instead of putting the extracted images in the whole lesson in the whole lesson, the goal is to give them space, as I do in present.
After some research, this renderInfo.getImageCTM () is what I only want, although the coordinates do not return the same as the posts of some images compared to the ads appearing in Adobe Reader.
In the Matte imageRender listener class it is
matrix matrix = renderInfo.get imjtm (); Float x = matrix.jet (matrix ii 31); Float y = matrix.get (Matrix.I32);
I have understood correctly, so I should give the XY position at the top left hand corner of each picture.
It is here that I
is a 4 page PDF that has one or two images per page.
Page XY Page 1 33.0 358.5 Page 2 1 321.7 41 9.92 Page 2 Second 41.2 182 Page3 First 43.1 307.5 Page 3 Second 417 58.5 Page4 292.5 457.5
The numbers in the actual document are not understandable when comparing coordinate output, for example, on page 3, the second image Y (58.5) is less than the first image Y (307.5) on the same page. Will this be placed on Figure 2 2 on Image 2 ??
Apart from this, any X coordinates and some X coordinates do not look right when comparing layouts in a reader.
What's wrong with me or do not understand?
Comments
Post a Comment