pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4518) NegativeArraySizeException thrown when converting PDF to Image
Date Tue, 23 Apr 2019 06:31:00 GMT

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

Tilman Hausherr commented on PDFBOX-4518:
-----------------------------------------

I didn't get a stack trace but by debugging I found that it happens in createPackedRaster,
w * h brings a negative number as a result, because 3_214_108_800 is larger than the largest
signed integer.

> NegativeArraySizeException thrown when converting PDF to Image
> --------------------------------------------------------------
>
>                 Key: PDFBOX-4518
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4518
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.13, 2.0.15
>         Environment: JRE 1.8.0_191,  Windows 10
>            Reporter: Eduardo Quintanilla
>            Priority: Major
>         Attachments: Bottom_plate-Model.pdf, output.log
>
>
> Trying to export as a PDF image fails with exception NegativeArraySizeException
> Command to reproduce:
> java -jar pdfbox-app-2.0.15.jar PDFToImage -page 1 -dpi 600 -format jpg Bottom_plate-Model.pdf



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message