This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Display pdf file as individual pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Display pdf file as individual pages" Watch "Display pdf file as individual pages" New topic

Display pdf file as individual pages

Bhargav N Balasubrahmanya

Joined: May 28, 2008
Posts: 8
Hi, i'm using a faces portlet and i want to display a pdf file in the page.
This is accomplished using an iframe and getting the pdf. When i use an iframe, i get all the usuall options of save, print, search etc all of which was not required and i removed them using styles so that the jsf page would contain only the 'actuall content' of the pdf.

But now, i want the pdf contents to be displayed to the user one page at a time with the Next and Prev options provided by me somewhere in the jsf page, so that he can view the rest of the pages.

How do i read and display the contents of the pdf one page at a time in java?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Did you check out what I suggested in this thread? If it doesn't do what you need done, tell us about it.

Also, please check your private messages like you were asked to do. Accounts without valid display names are generally closed.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

"Bhargav NB",
Please check your private messages regarding an important administrative matter.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Don't get me started about those stupid light bulbs.
subject: Display pdf file as individual pages
It's not a secret anymore!