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

Tilman Hausherr edited comment on PDFBOX-4492 at 3/22/19 8:23 PM:
------------------------------------------------------------------

You don't have to change anything. This will be done in PDFBox, i.e. that the 
dash value will be changed on the fly so that it doesn't get too small.

My current idea is to use
{code}
Matrix m = new Matrix(xform);
….

     dashArray[i] = Math.max(w, 0.03f / m.getScalingFactorX());
{code}
But I need to run all the tests first.


was (Author: tilman):
You don't have to change anything. This will be done in PDFBox, i.e. that the 
dash value will be changed on the fly so that it doesn't get too small.

> JVM crashes on PDFRenderer.renderImage
> --------------------------------------
>
>                 Key: PDFBOX-4492
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4492
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.11, 2.0.14
>         Environment: Oracle Java 8 update125, on both Mac OS X and centos.
> Also Oracle jdk 1.8.0_202 on W10.
>            Reporter: Jack
>            Priority: Critical
>         Attachments: crash.uploaded.pdf
>
>
> When running the following java program on the attached PDF:
> {code}
>  File file = new File("/Users/yujiang/Downloads", "crash.uploaded.pdf");
> PDDocument document = PDDocument.load(file);
> PDFRenderer renderer = new PDFRenderer(document);
> BufferedImage bufferedImage = renderer.renderImage(0, 0.20F);{code}
> JVM will crash without any log
>  



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

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

Reply via email to