You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Simon Steiner (Jira)" <ji...@apache.org> on 2022/08/19 09:24:00 UTC

[jira] [Resolved] (FOP-3089) Corrupt font display in iOS when using PDF-Images with merge-fonts=true

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

Simon Steiner resolved FOP-3089.
--------------------------------
    Fix Version/s: trunk
       Resolution: Fixed

http://svn.apache.org/viewvc?view=revision&revision=1903561

> Corrupt font display in iOS when using PDF-Images with merge-fonts=true
> -----------------------------------------------------------------------
>
>                 Key: FOP-3089
>                 URL: https://issues.apache.org/jira/browse/FOP-3089
>             Project: FOP
>          Issue Type: Bug
>         Environment: Both Windows and Linux (CentOS)
>            Reporter: Mark Gibson 
>            Assignee: Simon Steiner
>            Priority: Major
>             Fix For: trunk
>
>         Attachments: CorrupPdfViewComparison.png, fop-mergefonts.xml, fop.xml, image1.pdf, pdf-images-mergefonts.pdf, pdf-images.fo, pdf-images.pdf
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic).  When setting merge-fonts=true in fop config,  there are visual issues with the fonts in the embedded image when viewing the rendered PDF on in-browser viewers on iOS.
> All tests have been carried out using FOP 2.7.  When merge-fonts=false, the PDF displays fine in all known browsers.
> Tested viewing on latest iPadOS 15.6, and iOS 15.6, latest browser versions for Safari, Chrome, and DuckDuckGo.
> Viewing the rendered PDF on windows browsers, the PDF displays fine.  Ironically, when viewing the PDF on the Adobe Acrobat app for iOS, it displays fine.  Apologies, I don't have access to Linux to test browsers there.
> I've attached some files for reproduction:
>  * *{{pdf-images.fo}}*
>  * *{{image1.pdf}}* - image being embedded
>  * *{{fop.xml}}* - fop config with merge-fonts=false
>  * *{{fop-mergefonts.xml}}* - fop config with merge-fonts=true
>  * *{{pdf-images.pdf}}* - PDF rendered with merge-fonts=false
>  * *{{pdf-images-mergefonts.pdf}}* - PDF rendered with merge-fonts=true
> I also attached a screenshot of the two PDFs as viewed on an iOS device.
> Fonts (calibri.ttf, calibrib.ttf) can be provided on request.
> Commands to render the two PDFs are as follows:
>  * {{…/fop.bat -fo pdf-images.fo -c fop.xml -pdf pdf-images.pdf}}
>  * {{…/fop.bat -fo pdf-images.fo -c fop-mergefonts.xml -pdf pdf-images-mergefonts.pdf}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)