You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 02:15:33 UTC

[jira] [Closed] (PDFBOX-1868) Garbled / distorted fonts during PDF to image conversion on recent versions

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

John Hewson closed PDFBOX-1868.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

This is fixed in 2.0 and the solution is too complex to back-port.

> Garbled / distorted fonts during PDF to image conversion on recent versions
> ---------------------------------------------------------------------------
>
>                 Key: PDFBOX-1868
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1868
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.3
>         Environment: Java 6
>            Reporter: Jon Wu
>             Fix For: 2.0.0
>
>         Attachments: PDFBOX1868-script-font1_600.png, script-font-bad-1.8.3.png, script-font-bad-server-1.8.3-600dpi-jon.png, script-font-good-1.6.0.png, script-font-good-1.8.3-app-jar.png, script-font-good-app-jar-1.8.3-600dpi-jon.png, script-font.pdf
>
>
> Rasterized fonts have distorted curves and weird breaks in the letter when converting PDF to image.
> I'm running PDFBox in a web server environment to rasterize PDFs with text in them. However, I've found that in recent versions, I end up getting garbled text using the same code, same PDF, and same machine.
> In script-font-bad-1.8.3.png, you can see that this big cursive F has a weird break in it in the middle and all the curves aren't smooth which is really obvious when you compare this bad image (1.8.3) with the PDF or a good one (1.6.0).
> See script-font-good-1.6.0.png or the attached PDF for the correct rendering.
> What's weird is that I don't get the bad image when I use pdfbox-app.jar on the PDF - it's only with my code. The PDF has an embedded TrueType (CID) font with Identity-H encoding and was written by iText.
> This also happens on other fonts, but I chose this example because it's most obvious.
> Good versions:
> 1.6.0 (I'm on this now)
> 1.7.0-SNAPSHOT from approx 10/24/11
> 1.8.0-20130225.201137-98
> Bad versions:
> 1.7.1
> 1.8.0-SNAPSHOT from approx 3/1/13
> 1.8.3
> and many others in between
> I ended up downgrading to 1.6.0 because I had some issues with transparency on some of the good snapshots that were working, but I think the transparency issues are resolved on 1.8.3.
> Tilman Hausherr mentioned this could be a regression of PDFBOX-1435. 



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