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 09:52:00 UTC

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

     [ https://issues.apache.org/jira/browse/PDFBOX-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-6118:
------------------------------------
    Description: 
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().

  was:See linked PR, sometimes {{graphics2D.getTransform().getScaleX()}} is zero when printing with RASTERIZE_DPI_AUTO.


> IllegalArgumentException: Width (0) and height (0) cannot be <= 0 when printing 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