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

John Hewson commented on PDFBOX-1940:
-------------------------------------

This problems was caused by two errors in the way that the stroke width was 
being calculated. Firstly, the width was only multiplied by the CTM if the 
{{ctm.getXScaling()}} was > 0, in this case the width was large than the page 
and the scaling was a -ve number, so the giant width was left unscaled. 
Secondly, the CTM transform was applied by using {{ctm.getXScaling()}} which 
ignores the y-scaling, I've replaced the calculation with the average euclidian 
distance, which seems to work.

These changes are in trunk in revision 1571803.

> Faulty pdf->image rendering
> ---------------------------
>
>                 Key: PDFBOX-1940
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1940
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Daniel Kozimor
>             Fix For: 2.0.0
>
>         Attachments: input.pdf, output.jpg
>
>
> A particular PDF is producing improper output jpg.
> The pdf in question, as well as the produced jpg can be found attached to 
> this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to