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

Large code macro can overflow in PDF export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.2, 14.10.8
    • 14.10.3
    • Export - PDF
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      You can reproduce easily by displaying the code of a large Java class like https://raw.githubusercontent.com/xwiki/xwiki-platform/xwiki-platform-14.10.3/xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-api/src/main/java/org/xwiki/export/pdf/internal/job/PDFExportJob.java inside a wiki page, using the code macro of course, and then exporting that page to PDF.

      The long lines exceed / overflow the code macro borders and the print page width and are cut. The biggest issue is that the code that doesn't fit the print page width is lost.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: