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

Andreas Lehmkühler updated PDFBOX-3204:
---------------------------------------
    Fix Version/s:     (was: 2.0.0)

> JVM crashes on PDFRenderer.renderImageWithDPI
> ---------------------------------------------
>
>                 Key: PDFBOX-3204
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3204
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.10, 2.0.0
>         Environment: Oracle Java 8 update 71, on both Mac OS X Yosemite and 
> Ubuntu 14.04 LTS. Does not happen on OpenJDK 8.
>            Reporter: Amos Ng
>         Attachments: problem.pdf, problem2.pdf, problem3.pdf
>
>
> When running the following Scala program on one of the attached PDFs:
> {code}
> import org.apache.pdfbox.pdmodel.PDDocument
> import org.apache.pdfbox.rendering.PDFRenderer
> import java.io.File
> object FigureExtractorBatchCli {
>   def main(args: Array[String]): Unit = {
>     new PDFRenderer(PDDocument.load(new 
> File("problem.pdf"))).renderImageWithDPI(0, 195)
>   }
> }
> {code}
> a fatal error occurs with the JVM at [the call to 
> java.awt.Graphics2D.draw|https://github.com/apache/pdfbox/blob/6f3417a1863b308a9ce48722c2da1d62f09c9a35/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java#L578].
> For *problem.pdf* this only happens at a DPI >= 195. For *problem2.pdf* it's 
> DPI >= 5. For *problem3.pdf* it happens at any DPI.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to