Liferay Symposium 2016 | Reserve your seat today.
1. Installation / Deployment / Setup
(Opens New Window)
Mark as an Answer
Having trouble with document preview for non-PDF files in EE 6.1.20
September 20, 2012 5:18 PM
Rank: New Member
Join Date: September 20, 2012
I've uploaded PDF, HTML, .doc, .docx, and .txt into the Documents and Media portlet. Preview for the file types other than PDF isn't working. I've configured Liferay 6.1.20 EE to use LibreOffice for conversion and have enabled ImageMagick. This is running on Windows 7. I've added the following lines to portal-ext.properties:
OpenOffice integration and ImageMagick are both showing as enabled in the Server Administration->External Services tab. The links and icons for the converted files show up in the page that appears when I click on a doc in the Documents and Media portlet. The PDF from that link looks very good most of the time; however, no preview shows up for non-PDF files. Prior to enabling ImageMagick I was able to get some previews for non-PDF documents, but the text was garbled.
Upload txt/doc/html with ImageMagick disabled, preview works, but the text is garbled.
Upload txt/doc/html with ImageMagick enabled, no preview at all.
Upload non-PDF with ImageMagick disabled, then enable ImageMagick, preview shows up but is garbled.
I would appreciate any help someone can provide in getting preview with ImageMagick working, especially for .doc and .html files. I'm guessing I must have ImageMagick configured incorrectly, but I don't know of a way to test the configuration. I don't see anything in the server log saying there is a problem with it.
Sign in to vote.
Please sign in to flag this as inappropriate.