[
https://issues.apache.org/jira/browse/PDFBOX-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477355#comment-17477355
]
Tilman Hausherr commented on PDFBOX-5364:
-----------------------------------------
I played a bit with an uncompressed version... removing the clipping gets rid
of the problem. (Each image has a clipping rectangle)
But of course we can't do that.
Another thing is the CTM. The values get messed up when converted to
AffineTransform.
{noformat}
ctm: [130.32,0.0,0.0,0.72,232.56,797.28]
at: AffineTransform[[130.32000732421875, 0.0, 232.55999755859375], [0.0,
0.72000002861023, 797.280029296875]]
{noformat}
changing Matrix.createAffineTransform() so that it uses
Double.valueOf(String.valueOf(F)) fixes this (not very efficient, and looks
terrible) but the problem doesn't go away. Inspiration:
https://stackoverflow.com/a/61937328/535646
> Picture position accuracy problem
> ---------------------------------
>
> Key: PDFBOX-5364
> URL: https://issues.apache.org/jira/browse/PDFBOX-5364
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.25, 3.0.0 PDFBox
> Environment: windows, linux
> Reporter: zhaoyuanli
> Priority: Major
> Attachments: image-2022-01-17-11-48-01-920.png, test1.pdf
>
>
> * The image displayed is actually a combination of many images with a height
> of 1 pixel
> * However, after processing in pdfBox, some pictures seem to be missing.
> The display in Adobe is correct
> * Please see attached "test1.pdf" for the document. thanks~~
>
> !image-2022-01-17-11-48-01-920.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]