[
https://issues.apache.org/jira/browse/PDFBOX-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043315#comment-18043315
]
Tilman Hausherr edited comment on PDFBOX-6118 at 12/7/25 10:23 AM:
-------------------------------------------------------------------
Commit 1930304 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1930304 ]
PDFBOX-6118: avoid IllegalArgumentException if rasterDpi is 0, as suggested by
Matt Cosentino
was (Author: jira-bot):
Commit 1930304 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1930304 ]
PDFBOX-6118: avoid IllegalArgumentException if rasterDpi is 0
> IllegalArgumentException: Width (0) and height (0) cannot be <= 0 when
> printing landscape rotated with RASTERIZE_DPI_AUTO
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-6118
> URL: https://issues.apache.org/jira/browse/PDFBOX-6118
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.35, 3.0.6 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.36, 3.0.7 PDFBox, 4.0.0
>
>
> See linked PR, sometimes {{graphics2D.getTransform().getScaleX()}} is zero
> when printing with RASTERIZE_DPI_AUTO.
> Update: the cause is that the page is rotated so we can't use getScaleX().
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]