[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-dev
Subject:    [jira] [Updated] (FOP-3089) Corrupt font display in iOS when using PDF-Images with merge-fonts=true
From:       "Mark Gibson  (Jira)" <jira () apache ! org>
Date:       2022-08-16 11:16:00
Message-ID: JIRA.13477040.1660648202000.163834.1660648560004 () Atlassian ! JIRA
[Download RAW message or body]


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

Mark Gibson  updated FOP-3089:
------------------------------
    Description: 
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}}

  was:
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

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}}


> 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 
> Priority: Major
> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic