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

PDF export doesn't export gallery macro properly

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 10.11.8
    • Old Core - PDF export
    • Windows 10 64-bit, Chrome 75, XWiki 10.11.8 Standard
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Create a page with 4 attached pictures and a gallery macro to display them (or import the attached xar)
      2. Click on More actions > Export > Export as PDF (leave default options)

      Expected results: The page is exported as PDF

      Actual results: Only the first 2 slides are exported from 4 slides, also they aren't centered properly.

      Attachments

        Issue Links

          Activity

            [XWIKI-16522] PDF export doesn't export gallery macro properly
            vmassol Vincent Massol added a comment -

            Closing as won't fix since the old PDF export is now deprecated in favor or the more recent client-side PDF export, see https://forum.xwiki.org/t/deprecate-old-pdf-export-and-retire-it/13520. Thus, all issues except blocker issues are going to be closed as won't fix. Ofc, if anyone wants to fix this issue, they're free to go ahead and we'll reopen the issue.

            vmassol Vincent Massol added a comment - Closing as won't fix since the old PDF export is now deprecated in favor or the more recent client-side PDF export, see https://forum.xwiki.org/t/deprecate-old-pdf-export-and-retire-it/13520 . Thus, all issues except blocker issues are going to be closed as won't fix. Ofc, if anyone wants to fix this issue, they're free to go ahead and we'll reopen the issue.

            With the client-side PDF export the Gallery macro is exported as is in view mode, which means you get to see only the first image.

            This has been fixed by XWIKI-20458. So the client-side PDF export is not affected by this issue.

            mflorea Marius Dumitru Florea added a comment - With the client-side PDF export the Gallery macro is exported as is in view mode, which means you get to see only the first image. This has been fixed by XWIKI-20458 . So the client-side PDF export is not affected by this issue.

            With the client-side PDF export the Gallery macro is exported as is in view mode, which means you get to see only the first image. We could modify the Gallery macro to generate a different output when the page is exported to PDF (i.e. show all images) so that we get all images in the generated PDF, but we need to decide if we want this or not. Note that if I remove the gallery macro wrapping and leave only the images the client-side PDF export looks good so it's not affected by XWIKI-7490.

            mflorea Marius Dumitru Florea added a comment - With the client-side PDF export the Gallery macro is exported as is in view mode, which means you get to see only the first image. We could modify the Gallery macro to generate a different output when the page is exported to PDF (i.e. show all images) so that we get all images in the generated PDF, but we need to decide if we want this or not. Note that if I remove the gallery macro wrapping and leave only the images the client-side PDF export looks good so it's not affected by XWIKI-7490 .
            surli Simon Urli added a comment -

            Actually looks like almost a duplicate of XWIKI-7490

            surli Simon Urli added a comment - Actually looks like almost a duplicate of XWIKI-7490
            surli Simon Urli added a comment -

            Looks like it's a FOP issue with the scale of the pictures in the generated PDF. The XML created to be exported looks good, but I don't know well the options for FOP, it needs more investigations.

            surli Simon Urli added a comment - Looks like it's a FOP issue with the scale of the pictures in the generated PDF. The XML created to be exported looks good, but I don't know well the options for FOP, it needs more investigations.

            Tested also on XWiki 10.11.9 with MySQL 5.7 / 8.4.6 Standard version,  Libre 6.2.4.2 / Libre 4.1.0.1, Chrome 76 - the results are the same as above

            ganechitoaei Gabriela Anechitoaei added a comment - Tested also on XWiki 10.11.9 with MySQL 5.7 / 8.4.6 Standard version,  Libre 6.2.4.2 / Libre 4.1.0.1, Chrome 76 - the results are the same as above

            People

              vmassol Vincent Massol
              ganechitoaei Gabriela Anechitoaei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: