Foros de discusión
In navigation link I need to open PDF directly in browser
sangeeth k, modificado hace 11 años.
In navigation link I need to open PDF directly in browser
Regular Member Mensajes: 114 Fecha de incorporación: 22/04/12 Mensajes recientes
Hi all,
I am trying to open PDF file directly in browser,
what i did First i uploaded document in Document library and I get the path like this
Here issue is its opening as a optional formate open save
I need to open onclick PDF directly in browser....
can any one help in this issue..
Thanks
I am trying to open PDF file directly in browser,
what i did First i uploaded document in Document library and I get the path like this
/c/document_library/get_file?uuid=847aa31f-f639-4ca1-a6c2-8e7600bc23d6&groupId=10157
Here issue is its opening as a optional formate open save
I need to open onclick PDF directly in browser....
can any one help in this issue..
Thanks
Hitoshi Ozawa, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
What's the problem? Just set the link to point to the url of the pdf file in the document library. You may need to setup your web browser to open pdf files.
sangeeth k, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Regular Member Mensajes: 114 Fecha de incorporación: 22/04/12 Mensajes recientes
hitoshi
after linking that URL I am getting the popup box with open save options, But i need to open PDF directly in browser.
after linking that URL I am getting the popup box with open save options, But i need to open PDF directly in browser.
Shinn Lok, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Junior Member Mensajes: 89 Fecha de incorporación: 14/01/11 Mensajes recientes #
# Input a list of comma delimited extensions for which the content
# disposition header has to be set to "inline".
#
mime.types.content.disposition.inline=flv,gif,jpg,pdf,png,swf,wmv
The portal.property should make the content disposition inline instead of attachment so that it will try to open the file in your browser before it forces a download. Like Hitoshi said, it might be a configuration with your browser.
sangeeth k, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Regular Member Mensajes: 114 Fecha de incorporación: 22/04/12 Mensajes recientes
Hi Shinn Lok,
I added properties in portal-ext.proeprties
But still I am getting Popup box
this is my link of PDF file
can i missing any thing....
I added properties in portal-ext.proeprties
mime.types.content.disposition.inline=flv,gif,jpg,pdf,png,swf,wmv
But still I am getting Popup box
this is my link of PDF file
/c/document_library/get_file?uuid=847aa31f-f639-4ca1-a6c2-8e7600bc23d6&groupId=10157
can i missing any thing....
Shinn Lok, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Junior Member Mensajes: 89 Fecha de incorporación: 14/01/11 Mensajes recientes
Those are the default properties. The question is whether or not your browser is properly configured to open PDFs. You can test this by going to
http://www.liferay.com/documentation/liferay-portal/6.0/development
and clicking on the PDF PDF near the right hand side. If it does not open like how you expect your Liferay to, it confirms that it is your browser/PDF reader's settings.
http://www.liferay.com/documentation/liferay-portal/6.0/development
and clicking on the PDF PDF near the right hand side. If it does not open like how you expect your Liferay to, it confirms that it is your browser/PDF reader's settings.
sangeeth k, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Regular Member Mensajes: 114 Fecha de incorporación: 22/04/12 Mensajes recientes
Hi
liferay link PDF is opening in my browser... so no browser issue....
In general webcontent portlet i am attaching that link its opening for that webcontent portlet.
But my scenario is, In theme navigation.vm file I have a link I am attaching that link like below.......
and i added properties like you said........
But still i am getting POPUP
Thanks for reply.....
liferay link PDF is opening in my browser... so no browser issue....
In general webcontent portlet i am attaching that link its opening for that webcontent portlet.
But my scenario is, In theme navigation.vm file I have a link I am attaching that link like below.......
<li><a href="/c/document_library/get_file?uuid=2cee54e3-3bbc-4d77-a060-5308892cdbdf&groupId=10157">Current Month</a></li>
and i added properties like you said........
But still i am getting POPUP
Thanks for reply.....
Hitoshi Ozawa, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Which web browser and version are you using? Can you try with IE 8?
Pradeep Kumar Badhai, modificado hace 11 años.
RE: In navigation link I need to open PDF directly in browser
Junior Member Mensajes: 50 Fecha de incorporación: 6/09/11 Mensajes recientes
Liferay is not compatible with IE for PDF or Excel doc rendering or downloading. Other browser works fine.
Rafael Lluis, modificado hace 10 años.
RE: In navigation link I need to open PDF directly in browser
Junior Member Mensajes: 30 Fecha de incorporación: 15/10/12 Mensajes recientessangeeth k:
Hi
liferay link PDF is opening in my browser... so no browser issue....
In general webcontent portlet i am attaching that link its opening for that webcontent portlet.
But my scenario is, In theme navigation.vm file I have a link I am attaching that link like below.......<li><a href="/c/document_library/get_file?uuid=2cee54e3-3bbc-4d77-a060-5308892cdbdf&groupId=10157">Current Month</a></li>
and i added properties like you said........
But still i am getting POPUP
Thanks for reply.....
What I have confirmed more or less is:
1. If you use get_file and the uuid in the link (https://xxx.xx/c/document_library/get_file?uuid=cf8b4745-c55c-41b8-94d0-59ac0edebf4e&groupId=10124) Liferay offers the PDF like an attachment showing up a pop up window with the options Open, Save, Save as
2. If you use a link based on the name of the file (which is the link that the control panel uses or the link that WYSIWYG editor generates) (https://xxx.xx/documents/10124/12870/20130910100138_manual+JSF) Liferay opens the PDF directly
I am using IE9 in both cases
So ¿what kind of URL to point to a file does Liferay recommends?
Thank you
Joan Fluvia, modificado hace 8 años.
RE: In navigation link I need to open PDF directly in browser
New Member Mensajes: 13 Fecha de incorporación: 6/11/13 Mensajes recientes
I confirm what Rafael is saying, but in case 2, I found a few times where the browser still download the file (Maybe 1 each few hundred times).
I don't know why this is happening... maybe the person uploading the file used an old browser (most if not all the times was from pdfs uploaded by the same person)... maybe many uploads had been made at same time...
The only way I found to solve this is downloading the file and replace it uploading it again.
I don't know why this is happening... maybe the person uploading the file used an old browser (most if not all the times was from pdfs uploaded by the same person)... maybe many uploads had been made at same time...
The only way I found to solve this is downloading the file and replace it uploading it again.