Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21296

Some large documents cannot be exported to PDF anymore using new PDF Export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 15.8-rc-1, 14.10.17, 15.5.3
    • 14.10.16
    • Export - PDF
    • Windows 11 Pro, Edge 116, Chrome 116, Firefox 117, using a local instance of XWiki 14.10.16 on Oracle 19c, Tomcat 9.0.80
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Create a large page with a lot of content, including tables (tested with an Office Imported Word document, for easy reproduction please use the attached XAR)
      2. Login as Admin
      3. Go to Administer Wiki > Content > PDF Export and from Generator select "User Browser"
      4. Go to the created page, click More Actions > Export > PDF > Export > Export (keeping the default Export Options)
      5. Go to Administer Wiki > Content > PDF Export and from Generator select "Chrome Docker Container"
      6. Go back to the created page, click More Actions > Export > PDF > Export > Export
      7. Go to Administer Wiki > Content > PDF Export and from Generator select "Remote Chrome" (first start it on the machine if the case)
      8. Go to the created page, click More Actions > Export > PDF > Export > Export

      Expected results

      The page is exported to PDF.

      Actual results

      When using User Browser (Edge 116, Chrome 116 and Firefox 117), Docker Container and Remote Chrome, after a long waiting, the error message:

      Failed to export as PDF: Timeout waiting for web page to be ready for print.

      is displayed.

      Tested also by increasing Page Ready Timeout to 500, but, nevertheless, the PDF file is not exported.

      The issue could not be reproduced on XWiki 14.10.15, where the PDF is exported without having to increase Page Ready Timeout (except when using User Browser on Firefox, where I got the same timeout error message and increased the Timeout to 500, but the PDF was generated earlier than the timeout limit).

      The issue couldn't also be reproduced on XWiki 15.5.2, except for when using User Browser on Firefox 117, where although the Timeout was set to 500, the PDF seems to not be generated in the end (same Timeout error message).

      It is to be mentioned that the page is exported to PDF using old PDF (FOP) export (also within a shorter time).

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: