You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Amos Ng (JIRA)" <ji...@apache.org> on 2016/01/21 23:32:39 UTC
[jira] [Created] (PDFBOX-3204) JVM crashes on
PDFRenderer.renderImageWithDPI
Amos Ng created PDFBOX-3204:
-------------------------------
Summary: 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
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org