[jira] [Updated] (FOP-3156) FOP External Graphic PDF with fine dotted lines causes Chromium based browsers to struggle to display those pages.

2023-10-26 Thread Mark Gibson (Jira)


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

Mark Gibson  updated FOP-3156:
--
Description: 
When including a PDF that has fine dotted lines using fo:external-graphic, 
Chromium based browsers cannot display that image (or can, but really really 
really slowly, depending on amount of content in PDF).  This can be seen by 
simply trying to scroll through the FOP rendered PDF in the Chromium based 
browser (either forwards or backwards).

To note, Firefox and Adobe tools do not have an issue displaying the FOP 
rendered PDF.

I understand this could potentially point fingers at Chromium/Pdfium, but that 
call is beyond my experience, so am starting in the FOP community with hope.  
It should be noted that the same PDF being included via external-graphic, when 
viewed directly in a Chromium based browser, has no display issues.

The reproduceable included here include two variants, one using dotted lines 
that demonstrates the issue, and one with solid lines demonstrating an 
equivalent PDF that has no display issues.  Both cases produce a 3 page PDF 
with the external graphic on page 2, allowing scroll testing from before image, 
through the image and past:
 * *dotTest.bat* - windows batch file to run both FOP renders
 * *foDots.xml* - FO file for producing the dotted line variant PDF
 * *foLines.xml* - FO file for producing the solid line variant PDF
 * *myTableDots.pdf* - PDF file containing dotted lines used as the 
external-graphic
 * *myTableLines.pdf* - PDF file containing solid lines used as the 
external-graphic
 * *outDots.pdf* - my example FOP rendered file with dotted lines
 * *outLines.pdf* - my example FOP rendered file with solid lines

Test prerequisites - FOP and FOP PDF Images installed 

To test/experience issue, load the final PDF in a chromium browser (best have a 
smallish window so it opens only displaying page 1).  Then scroll slowly 
through to page 2.  Watch Chrome look like it's stopped responding.

I have run the above tests on Windows, but we found the original problem on 
Linux, so I don't believe platform OS to be a contributing factor.

 

To give some context on how the dotted lines are created ...

In Excel, format borders with the finest dotted line.  Copy the cells to the 
clipboard.  Paste in to Word (as Image).  in Word, SaveAs PDF.

This is a very standard process many of our clients use, so sadly don't have 
much scope in changing it.  They're already unhappy at us telling them to 
remove dotted lines.  Hence me coming to the community cap-in-hand.

 

Yours hopefully

Mark

  was:
When including a PDF that has fine dotted lines using fo:external-graphic, 
Chromium based browsers cannot display that image (or can, but really really 
really slowly, depending on amount of content in PDF).  This can be seen by 
simply trying to scroll through the FOP rendered PDF in the Chromium based 
browser (either forwards or backwards).

To note, Firefox and Adobe tools do not have an issue displaying the FOP 
rendered PDF.

I understand this could potentially point fingers at Chromium/Pdfium, but that 
call is beyond my experience, so am starting in the FOP community with hope.  
It should be noted that the same PDF being included via external-graphic, when 
viewed directly in a Chromium based browser, has no display issues.

The reproduceable included here include two variants, one using dotted lines 
that demonstrates the issue, and one with solid lines demonstrating an 
equivalent PDF that has no display issues.  Both cases produce a 3 page PDF 
with the external graphic on page 2, allowing scroll testing from before image, 
through the image and past:
 * *dotTest.bat* - windows batch file to run both FOP renders
 * *foDots.xml* - FO file for producing the dotted line variant PDF
 * *foLines.xml* - FO file for producing the solid line variant PDF
 * *myTableDots.pdf* - PDF file containing dotted lines used as the 
external-graphic
 * *myTableLines.pdf* - PDF file containing solid lines used as the 
external-graphic
 * *outDots.pdf* - my example FOP rendered file with dotted lines
 * *outLines.pdf* - my example FOP rendered file with solid lines

Test prerequisites - FOP and FOP PDF Images installed 

To test/experience issue, load the final PDF in a chromium browser (best have a 
smallish window so it opens only displaying page 1).  Then scroll slowly 
through to page 2.  Watch Chrome look like it's stopped responding.

 

To give some context on how the dotted lines are created ...

In Excel, format borders with the finest dotted line.  Copy the cells to the 
clipboard.  Paste in to Word (as Image).  in Word, SaveAs PDF.

This is a very standard process many of our clients use, so sadly don't have 
much scope in changing it.  They're already unhappy at us telling them to 
remove dotted lines.  Hence me coming to the community cap-in-hand.

 

Yours hopefully

Mark



[jira] [Created] (FOP-3156) FOP External Graphic PDF with fine dotted lines causes Chromium based browsers to struggle to display those pages.

2023-10-26 Thread Mark Gibson (Jira)
Mark Gibson  created FOP-3156:
-

 Summary: FOP External Graphic PDF with fine dotted lines causes 
Chromium based browsers to struggle to display those pages.
 Key: FOP-3156
 URL: https://issues.apache.org/jira/browse/FOP-3156
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.9, 2.8, 2.7
Reporter: Mark Gibson 
 Attachments: dotTest.bat, foDots.xml, foLines.xml, myTableDots.pdf, 
myTableLines.pdf, outDots.pdf, outLines.pdf

When including a PDF that has fine dotted lines using fo:external-graphic, 
Chromium based browsers cannot display that image (or can, but really really 
really slowly, depending on amount of content in PDF).  This can be seen by 
simply trying to scroll through the FOP rendered PDF in the Chromium based 
browser (either forwards or backwards).

To note, Firefox and Adobe tools do not have an issue displaying the FOP 
rendered PDF.

I understand this could potentially point fingers at Chromium/Pdfium, but that 
call is beyond my experience, so am starting in the FOP community with hope.  
It should be noted that the same PDF being included via external-graphic, when 
viewed directly in a Chromium based browser, has no display issues.

The reproduceable included here include two variants, one using dotted lines 
that demonstrates the issue, and one with solid lines demonstrating an 
equivalent PDF that has no display issues.  Both cases produce a 3 page PDF 
with the external graphic on page 2, allowing scroll testing from before image, 
through the image and past:
 * *dotTest.bat* - windows batch file to run both FOP renders
 * *foDots.xml* - FO file for producing the dotted line variant PDF
 * *foLines.xml* - FO file for producing the solid line variant PDF
 * *myTableDots.pdf* - PDF file containing dotted lines used as the 
external-graphic
 * *myTableLines.pdf* - PDF file containing solid lines used as the 
external-graphic
 * *outDots.pdf* - my example FOP rendered file with dotted lines
 * *outLines.pdf* - my example FOP rendered file with solid lines

Test prerequisites - FOP and FOP PDF Images installed 

To test/experience issue, load the final PDF in a chromium browser (best have a 
smallish window so it opens only displaying page 1).  Then scroll slowly 
through to page 2.  Watch Chrome look like it's stopped responding.

 

To give some context on how the dotted lines are created ...

In Excel, format borders with the finest dotted line.  Copy the cells to the 
clipboard.  Paste in to Word (as Image).  in Word, SaveAs PDF.

This is a very standard process many of our clients use, so sadly don't have 
much scope in changing it.  They're already unhappy at us telling them to 
remove dotted lines.  Hence me coming to the community cap-in-hand.

 

Yours hopefully

Mark



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


[jira] [Updated] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

2022-11-17 Thread Mark Gibson (Jira)


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

Mark Gibson  updated FOP-3108:
--
Attachment: img-with-gradient.pdf

> fo:external-graphic - PDF with gradient component not displayed correctly 
> after scaling
> ---
>
> Key: FOP-3108
> URL: https://issues.apache.org/jira/browse/FOP-3108
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.7, 2.8
>Reporter: Mark Gibson 
>Priority: Major
> Attachments: img-with-gradient.pdf, out1.pdf, 
> pdf-external-graphic-scaling-with-gradients.fo
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
> has a gradient fill component.  When scaling the image, the gradient does not 
> display properly.  Resulting from shifted gradient to no gradient depending 
> on scale.
> *width scaling* All issues are found when scaling width by %
> *height scaling* Doesn't seem to even scale the image
>  
> Files attached for testing:
>  * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a 
> selection of image inclusions at different scales and scaling methods
>  * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered 
> pdf, containing a gradient filled component.
>  * *{{out1.pdf}}* - the result of running fop on above
> Tested on Windows using FOP 2.7 and 2.8
> Command used to execute is
> {{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}



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


[jira] [Updated] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

2022-11-17 Thread Mark Gibson (Jira)


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

Mark Gibson  updated FOP-3108:
--
Attachment: pdf-external-graphic-scaling-with-gradients.fo

> fo:external-graphic - PDF with gradient component not displayed correctly 
> after scaling
> ---
>
> Key: FOP-3108
> URL: https://issues.apache.org/jira/browse/FOP-3108
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.7, 2.8
>Reporter: Mark Gibson 
>Priority: Major
> Attachments: img-with-gradient.pdf, out1.pdf, 
> pdf-external-graphic-scaling-with-gradients.fo
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
> has a gradient fill component.  When scaling the image, the gradient does not 
> display properly.  Resulting from shifted gradient to no gradient depending 
> on scale.
> *width scaling* All issues are found when scaling width by %
> *height scaling* Doesn't seem to even scale the image
>  
> Files attached for testing:
>  * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a 
> selection of image inclusions at different scales and scaling methods
>  * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered 
> pdf, containing a gradient filled component.
>  * *{{out1.pdf}}* - the result of running fop on above
> Tested on Windows using FOP 2.7 and 2.8
> Command used to execute is
> {{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}



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


[jira] [Updated] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

2022-11-17 Thread Mark Gibson (Jira)


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

Mark Gibson  updated FOP-3108:
--
Attachment: out1.pdf

> fo:external-graphic - PDF with gradient component not displayed correctly 
> after scaling
> ---
>
> Key: FOP-3108
> URL: https://issues.apache.org/jira/browse/FOP-3108
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.7, 2.8
>Reporter: Mark Gibson 
>Priority: Major
> Attachments: img-with-gradient.pdf, out1.pdf, 
> pdf-external-graphic-scaling-with-gradients.fo
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
> has a gradient fill component.  When scaling the image, the gradient does not 
> display properly.  Resulting from shifted gradient to no gradient depending 
> on scale.
> *width scaling* All issues are found when scaling width by %
> *height scaling* Doesn't seem to even scale the image
>  
> Files attached for testing:
>  * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a 
> selection of image inclusions at different scales and scaling methods
>  * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered 
> pdf, containing a gradient filled component.
>  * *{{out1.pdf}}* - the result of running fop on above
> Tested on Windows using FOP 2.7 and 2.8
> Command used to execute is
> {{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}



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


[jira] [Updated] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

2022-11-17 Thread Mark Gibson (Jira)


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

Mark Gibson  updated FOP-3108:
--
Description: 
Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
has a gradient fill component.  When scaling the image, the gradient does not 
display properly.  Resulting from shifted gradient to no gradient depending on 
scale.

*width scaling* All issues are found when scaling width by %

*height scaling* Doesn't seem to even scale the image

 

Files attached for testing:
 * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a 
selection of image inclusions at different scales and scaling methods
 * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered 
pdf, containing a gradient filled component.
 * *{{out1.pdf}}* - the result of running fop on above

Tested on Windows using FOP 2.7 and 2.8

Command used to execute is

{{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}

  was:
Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
has a gradient fill component.  When scaling the image, the gradient does not 
display properly.  Resulting from shifted gradient to no gradient depending on 
scale.

*width scaling*

All issues are found when scaling width by %

*height scaling*

 


> fo:external-graphic - PDF with gradient component not displayed correctly 
> after scaling
> ---
>
> Key: FOP-3108
> URL: https://issues.apache.org/jira/browse/FOP-3108
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.7, 2.8
>Reporter: Mark Gibson 
>Priority: Major
> Attachments: img-with-gradient.pdf, out1.pdf, 
> pdf-external-graphic-scaling-with-gradients.fo
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
> has a gradient fill component.  When scaling the image, the gradient does not 
> display properly.  Resulting from shifted gradient to no gradient depending 
> on scale.
> *width scaling* All issues are found when scaling width by %
> *height scaling* Doesn't seem to even scale the image
>  
> Files attached for testing:
>  * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a 
> selection of image inclusions at different scales and scaling methods
>  * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered 
> pdf, containing a gradient filled component.
>  * *{{out1.pdf}}* - the result of running fop on above
> Tested on Windows using FOP 2.7 and 2.8
> Command used to execute is
> {{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}



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


[jira] [Created] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

2022-11-17 Thread Mark Gibson (Jira)
Mark Gibson  created FOP-3108:
-

 Summary: fo:external-graphic - PDF with gradient component not 
displayed correctly after scaling
 Key: FOP-3108
 URL: https://issues.apache.org/jira/browse/FOP-3108
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.8, 2.7
Reporter: Mark Gibson 


Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF 
has a gradient fill component.  When scaling the image, the gradient does not 
display properly.  Resulting from shifted gradient to no gradient depending on 
scale.

*width scaling*

All issues are found when scaling width by %

*height scaling*

 



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


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

2022-08-19 Thread Mark Gibson (Jira)


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

Mark Gibson  commented on FOP-3089:
---

This is fantastic!  Thanks Simon.

 

To aid our planning and help us choose our next step, do you have any feel for 
when 2.8 may get released?  If not, we'll look to use Trunk.  Where would I 
look for a list of changes since 2.7?

 

Thanks

Mark

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


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

2022-08-16 Thread Mark Gibson (Jira)


 [ 
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 

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

2022-08-16 Thread Mark Gibson (Jira)
Mark Gibson  created FOP-3089:
-

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

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)