PDFBox Causing JVM Crashes

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.


  1. 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.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.
  2. Another solution would be to open a ticket with our Support team and request for the solution on LPS-37243.

Additional Information

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.

LPS-32257: PDFBOX 1.6 Cause Tomcat Crash on Big PDF Files.

Was this article helpful?
0 out of 0 found this helpful