Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-83658

A created PDF preview with PDFBOX is broken.

    Details

      Description

      Description
      Specific PDF previews with PDFBOX is broken when integrated in Liferay.

      According to https://www.liferay.com/downloads/third-party-software, The version of PDFBOX used in Lifefay is 1.8.12.
      I tried to create a image with the following command, and the PDF previews were created correctly:

      java -jar pdfbox-app-1.8.12.jar PDFToImage sample.pdf

      However, when we upload the file and Liferay attempts to generate the preview, there is a problem with image generation:

      Steps to reproduce

      1. Setup DXP and install DE-54
      2. Start Liferay and login as test@liferay.com
      3. Navigate to Liferay > Content > Document and Media
      4. Add a basic document and show the pdf preview
        (please use attached sample.pdf) sample.pdf

      Actual result
      The created PDF preview with PDFBOX is broken.

      Expected result
      PDF preview is created without any problems, like the image created in standalone PDFBOX

      Reproduced in
      DE-54
      7.0.x: GIT HASH: bbc1c35ce1391a15757899458ed706d8d033a419

      Not reproduced in
      master: GIT HASH: 1f3b51f4c3412a2b14f6956e0416ce64db43dec6

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abel.yu Abel Yu (Inactive)
                Reporter:
                seiphon.wang Seiphon Wang
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 18 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP58
                  7.0.0 DXP SP9
                  7.0.X