[ https://issues.apache.org/jira/browse/FOP-3156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joao Goncalves reopened FOP-3156: --------------------------------- > 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.7, 2.8, 2.9 > Reporter: Mark Gibson > Priority: Major > 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. > 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 -- This message was sent by Atlassian Jira (v8.20.10#820010)