Liferay DXP 7.2 | Configuring Document Previews

Sabyasachi Chattaraj
Nov 3 · 2 min read

Liferay DXP 7.2 can be configured for fast and high-quality document previews. But the process is a bit different than previous iterations of Liferay. Below are the configuration steps :

  • Download and Install Apache Open Office. You can get the software from here.
  • Configure Open Office to start in server mode by editing the ${OfficePath}/share/main.xcd and edit the tag <prop oor:name=”ooSetupConnectionURL”/> as below :
  • Launch Open Office Software and verify Open Office listener with the following command :
netstat -nao|findstr -c”:8100"
  • Download & Install ImageMagick & GhostScript
  • Startup Liferay Server
  • Configure Open Office integrations from Control Panel > Configuration > System Settings > Connectors
  • Configure ImageMagick & GhostScript from Control Panel > Server Administration > External Services
  • Upload documents in Documents and Media Library to see the preview. (Click on the document’s name. It will show a message that the preview generation is ongoing. Reload after some time.)
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade