Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Property for making default pdf viewer
We have scenario in which we have enable Open office, Image magick, ghost script for Document preview & we are able see the document preview.
Now we want the default pdf viewer for the pdf file extensions alone.
Is there any property for this output or how to achieve this output.
You mean you want, for example, anything with .pdf as an extension to open with Open Office only? Something like that?
Anything with .pdf as an extension to open with Pdf Box only(Liferay's default preview) & not with open office even though it was enabled.
Thanks for immediate response
openoffice.conversion.target.extensions[drawing]=pdf,svg,swf
openoffice.conversion.target.extensions[presentation]=odp,pdf,ppt,swf,sxi
openoffice.conversion.target.extensions[spreadsheet]=csv,ods,pdf,sxc,tsv,xls
openoffice.conversion.target.extensions[text]=doc,odt,pdf,rtf,sxw,txt
.. maybe try putting those in your portal-ext, but removing the references to PDF? Perhaps removing support for pdf from the open office settings will cause it to ignore the extension.
I tried removing the pdf in the below said property but it didn't work.
Any other alternate for this viewing.
hi olaf kock,
We want explain you the context, we are using open office, Image
magick, ghost script for Document preview of docx, xlsx, pptx..
we want the default pdf box to be used for the pdf file extensions.
how to achieve this document preview for pdf file extension.
Olaf asked a good question. When you click the link for the PDF to see it, are you talking about the PDF rendering in the browser? The settings you are referring to for open office and stuff are not for LOOKING at the files (i.e. reading them), they are used for converting to different formats, print previews etc I think.
Hi Andrew
As you may aware the liferay comes with the default PDF box which normally shows the preview of PDF extension and not the other extension files.This preview normally shown in the details page of document.when we enable the open office, Image magick, ghost script the preview of the PDF extension also changes to image instead of rendering from PDF box. We want this PDF box preview for the PDF file and other file extension has to make use of open office.
Ah ok -- it's specifically for the preview generation. Ok, that makes it clearer. I just looked back up the thread and I don't see a reference to a Liferay version. Remind me which version you are on? Was it Liferay 7?
We are using Liferay 6.2 version
Powered by Liferay™