[ https://issues.apache.org/jira/browse/PDFBOX-5842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855639#comment-17855639 ]
ASF subversion and git services commented on PDFBOX-5842: --------------------------------------------------------- Commit 1918389 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1918389 ] PDFBOX-5842: avoid 0 parameter to getScaledInstance() > IllegalArgumentException: Width (26) and height (0) must be non-zero > -------------------------------------------------------------------- > > Key: PDFBOX-5842 > URL: https://issues.apache.org/jira/browse/PDFBOX-5842 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.31, 3.0.2 PDFBox > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Priority: Major > Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0 > > > reported by Patrycja Zaremba in the users mailing list > https://lists.apache.org/thread/xnwcyhq2c16d9xfgqwgjs70k9qb1w8tp > {quote}When the page which I try to convert have any element which is png with > only 1px height (28x1, 54x1 etc.) it is scaled down to 0 and I got this{quote} > IllegalArgumentException: Width (26) and height (0) must be non-zero > org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1281) > > org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:74) -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org