You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/12/07 10:24:00 UTC

[jira] [Comment Edited] (PDFBOX-6118) IllegalArgumentException: Width (0) and height (0) cannot be <= 0 when printing landscape rotated with RASTERIZE_DPI_AUTO

    [ https://issues.apache.org/jira/browse/PDFBOX-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043316#comment-18043316 ] 

Tilman Hausherr edited comment on PDFBOX-6118 at 12/7/25 10:23 AM:
-------------------------------------------------------------------

Commit 1930305 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1930305 ]

PDFBOX-6118: avoid IllegalArgumentException if rasterDpi is 0, as suggested by Matt Cosentino


was (Author: jira-bot):
Commit 1930305 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1930305 ]

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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org