Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Krzysiek Karol
PDF Viewer
August 29, 2013 2:29 AM
Answer

Krzysiek Karol

Rank: New Member

Posts: 1

Join Date: August 29, 2013

Recent Posts

Hello,

is it possible to put PDFViewer portlet configured to particular PDF file?
Currently I have to focus all directory, not a particular file.
Antoine Comble
RE: PDF Viewer
August 30, 2013 7:55 AM
Answer

Antoine Comble

Rank: Regular Member

Posts: 201

Join Date: September 7, 2012

Recent Posts

Hi Karol,

You can create a specific portlet and in view.jsp, put the code below :
1
2<object data="../../examples/junit.pdf" width="100%" height="600" type="application/pdf"><a href="../../examples/junit.pdf">default example</a></object>


It's work for me.

Then, in portlet edition mode, i put a form for editing url to the pdf.

Regards,

Antoine
Victor Zorin
RE: PDF Viewer
September 1, 2013 2:33 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1170

Join Date: April 14, 2008

Recent Posts

Have a look at this PDF Viewer portlet.
You can also point to a specific page of PDF document and configure whether downloading is permitted.