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

PDF previews generated with ImageMagick&Ghostscritpt are not properly sized

    Details

      Description

      Steps to reproduce:

      1. Upload the attached pdf file and check the preview for the first page in file system.
      Checkpoint: It has width 1000 (probably based on the dl.file.entry.preview.document.max.width property) and height 1414.
      If you modify this property, the width of the preview will be the same as the property, and the height will automatically adjust to keep the aspect ratio of the page.
      2. Enable Image Magick and Ghostscript and upload again the same file.
      Result: It has width 792 and height 1000!
      Expected: As before, with PDFBox.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 3 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP57
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.X
                  Master