This article is a legacy article. It applies to previous versions of the Liferay product. While the article is no longer maintained, the information may still be applicable.
This article describes an issue inherent in the PDFBox library that causes a JVM crash upon image conversion.
- Due to this PDFBox library issue which is in operation by default within the Liferay Portal, one solution would be to switch to using ImageMagick instead of PDFBox. To do this, enable ImageMagick in the portal-ext.properties:
imagemagick.enabled=true imagemagick.global.search.path=[Your ImageMagick Path]Keep in mind that you must install Ghostscript and Imagemagick. See Ghost Script and Image Magick for more information.
- Another solution would be to open a ticket with our Support team and request for the solution on LPS-37243.
If you’re unable to properly use ImageMagick, you may need to update to the latest version (ImageMagick 6.7.9-6 2012-09-25 Q16 or later). See LPS-30291 for information on efforts to identify incompatible application versions with Liferay Portal.