How to display specific range of pages from pdf file

Hi Experts

is there any way to display certain range of page (ex from page NO. 5 till the Page 17) from PDF in JSP File.
Is there any Components to do that within JSP Pages.

Thanx
 
massricoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fargoCommented:
>>is there any way to display certain range of page (ex from page NO. 5 till the Page 17) from PDF in JSP File.
You wish to get pages from PDF and display in JSP??...please give more details.

0
actonwangCommented:
Sure, you can do it, but you'd use some PDF java api to do it:

for example:
you can use this PDF API: http://www.lowagie.com/iText/docs.html (free :))
You can use com.lowagie.text.pdf.PdfReader  class to read any page you want by invoke method:
   byte[]    getPageContent(int pageNum)

refer to: http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfReader.html

Enjoy :)
Acton
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
massricoAuthor Commented:
Hi all,

fargo :-
All I seek for is that if I have an PDF File Contains 100 pages on the server so I wand to display some range of pages ( from page 5 to page 11) without displaying the other pages in my jsp page.

actonwang :-
I will look for that API

Thanx All


0
fargoCommented:
ok. Then itext is the way to go..as actonwang said. itext is a very good open source project and you should be able to have your purpose solved.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.