Affects Version/s: 7.0.X
Component/s: Documents & Media
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:
However, when we upload the file and Liferay attempts to generate the preview, there is a problem with image generation:
Steps to reproduce
- Setup DXP and install DE-54
- Start Liferay and login as email@example.com
- Navigate to Liferay > Content > Document and Media
- Add a basic document and show the pdf preview
(please use attached sample.pdf) sample.pdf
The created PDF preview with PDFBOX is broken.
PDF preview is created without any problems, like the image created in standalone PDFBOX
7.0.x: GIT HASH: bbc1c35ce1391a15757899458ed706d8d033a419
Not reproduced in
master: GIT HASH: 1f3b51f4c3412a2b14f6956e0416ce64db43dec6