Hi Sipin,

portlet is not able to open file from your local machine.
portlet has access to server files only.

so you have to make portlet where user can upload some pdf file, then 
portlet can process that file (and then use pdfbox)


Best regards
Juraj Lonc





From:   Sipin Verma <[email protected]>
To:     [email protected], 
Date:   13. 09. 2012 12:56
Subject:        How to use pdfviewer in liferay portlet to see a pdf



Hi ,

My requirement is to open a pdf document from my local machine hard disk 
or
from a online available pdf link in my liferay portlet.
I am looking into PDFBox but I am not able to understand how to start. 
What
APIs I should use to open a pdf document in my portlet.

Can anyone help me with some sample code or directions to use pdfviewer 
for
opening a pdf in browser.

*Sipin Verma*

Reply via email to