[
https://issues.apache.org/jira/browse/PDFBOX-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16907420#comment-16907420
]
Tilman Hausherr edited comment on PDFBOX-4630 at 8/14/19 4:44 PM:
------------------------------------------------------------------
{noformat}
position in PDF = 97.921005, 166.008 in user space units
raw image size = 675, 611 in pixels
displayed size = 323.997, 293.54102 in user space units
displayed size = 4.4999585, 4.0769587 in inches at 72 dpi rendering
displayed size = 114.29894, 103.55475 in millimeters at 72 dpi rendering
ctm: [323.997,0.0,0.0,293.54102,97.921005,166.008]
{noformat}
the position looks OK, -but the size doesn't in user space units / inch / mm
doesn't. I suspect that code assumes that the image has the same size than the
scale but it isn't.-
was (Author: tilman):
{noformat}
position in PDF = 97.921005, 166.008 in user space units
raw image size = 675, 611 in pixels
displayed size = 323.997, 293.54102 in user space units
displayed size = 4.4999585, 4.0769587 in inches at 72 dpi rendering
displayed size = 114.29894, 103.55475 in millimeters at 72 dpi rendering
ctm: [323.997,0.0,0.0,293.54102,97.921005,166.008]
{noformat}
the position looks OK, but the size doesn't in user space units / inch / mm
doesn't. I suspect that code assumes that the image has the same size than the
scale but it isn't.
> Wrong Image Coordinates for Pdf File
> ------------------------------------
>
> Key: PDFBOX-4630
> URL: https://issues.apache.org/jira/browse/PDFBOX-4630
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.16
> Environment: Windows 10, Java 1.8, Spring Boot 2.1.5.RELEASE
> Reporter: Yogesh Tiwari
> Priority: Major
> Attachments: Clean_Code.pdf
>
>
> Based on this example:
> [https://svn.apache.org/repos/asf/pdfbox/tags/2.0.16/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java]
> We get incorrect image coordinates with size in user space units for attached
> Pdf.
>
>
> NOTE: Adobe can process and highlight the images properly.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]