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

Amos Ng updated PDFBOX-3204:
----------------------------
    Description: 
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].
 This only happens at a DPI >= 195; at lower DPIs the rendering works fine.

  was:
When running the following Scala program on [this 
PDF|https://s3-us-west-2.amazonaws.com/ai2-s2-public/problem.pdf]:

{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].
 This only happens at a DPI >= 195; at lower DPIs the rendering works fine.


> 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: 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
>             Fix For: 2.0.0
>
>         Attachments: problem.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].
>  This only happens at a DPI >= 195; at lower DPIs the rendering works fine.



--
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