RE: Property for making default pdf viewer

Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
Dear All,

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.
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Dinesh,

You mean you want, for example, anything with .pdf as an extension to open with Open Office only? Something like that?
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
hi andrew,

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
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Have you tried removing the pdf extension from the property? By default it is set to --

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.
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
hi andrew,

I tried removing the pdf in the below said property but it didn't work.
Any other alternate for this viewing.
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
As you use "viewing" - just to make sure: You're not referring to the software that shows PDFs when you open them in your browser, do you? That would be part of your browser's configuration, Liferay has nothing to say there.
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts

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.

thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

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. 

Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts

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.

 

 

thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

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?

Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts

We are using Liferay 6.2 version