Fórumok
In navigation link I need to open PDF directly in browser
sangeeth k, módosítva 11 év-val korábban
In navigation link I need to open PDF directly in browser
Regular Member Bejegyzések: 114 Csatlakozás dátuma: 2012.04.22. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Regular Member Bejegyzések: 114 Csatlakozás dátuma: 2012.04.22. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Junior Member Bejegyzések: 89 Csatlakozás dátuma: 2011.01.14. Legújabb bejegyzések #
# 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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Regular Member Bejegyzések: 114 Csatlakozás dátuma: 2012.04.22. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Junior Member Bejegyzések: 89 Csatlakozás dátuma: 2011.01.14. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Regular Member Bejegyzések: 114 Csatlakozás dátuma: 2012.04.22. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Which web browser and version are you using? Can you try with IE 8?
Pradeep Kumar Badhai, módosítva 11 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Junior Member Bejegyzések: 50 Csatlakozás dátuma: 2011.09.06. Legújabb bejegyzések
Liferay is not compatible with IE for PDF or Excel doc rendering or downloading. Other browser works fine.
Rafael Lluis, módosítva 10 év-val korábban
RE: In navigation link I need to open PDF directly in browser
Junior Member Bejegyzések: 30 Csatlakozás dátuma: 2012.10.15. Legújabb bejegyzéseksangeeth 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, módosítva 8 év-val korábban
RE: In navigation link I need to open PDF directly in browser
New Member Bejegyzések: 13 Csatlakozás dátuma: 2013.11.06. Legújabb bejegyzések
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.