Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Display PDF file content on liferay page load
I want to display content of PDF file (located at a server path), when i hit a specific page url. I located the file and now got struck at rendering the file content to jsp (from rendermapping method). I know resource method will simplify the job but i need the functionality on the initial page render. Any help/pointers are highly appreciated.
This is probably something you don't want to do on your own. Jump over to Google and search for a PDF to HTML library that works for you and use that library.
I need the functionality on the initial page render. Any help/pointers are highly appreciated.
Have you considered creating an iframe that points to a service resource URL that serves the PDF?