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

Andreas Lehmkühler updated PDFBOX-3579:
---------------------------------------
    Attachment: PDFBOX-3579_FontMatrix_patch.txt

I guess I've found the reason for the described issue, the fontmatrix of the 
font. The given font provides a font matrix in the top dictionary and different 
one in the private dictionary. Those have to be multiplied and everything is 
ok. According to the docs this approach shall be limited to synthetic fonts but 
it seems to be needed in the given case as well.

I've attached a patch to fix the issue, but there are still 2 things to do:
- I didn't implement a full multiply, I've just multplied the scaling factors 
of the matrices
- the quality of the scaling is "suboptimal"

> Giant glyphs when rendering embedded fonts
> ------------------------------------------
>
>                 Key: PDFBOX-3579
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3579
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.3
>            Reporter: Holger Floerke
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 2.0.5, 2.1.0
>
>         Attachments: 978-3-86764-721-2_t21.jpg, 978-3-86764-721-2_t2.pdf, 
> PDFBOX-3579_FontMatrix_patch.txt
>
>
> Hi,
> I try to generate an image out of the attatched pdf. PDFViewer like "Acrobat 
> Reader" or the Ubuntu "Document Viewer" are able to display the PDF in a 
> correct way. PDFBox is a little bit confused about the font.
> Checked with the latest relase version:
> java -jar pdfbox-app-2.0.3.jar PDFToImage 978-3-86764-721-2_t2.pdf



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to