How to display specific range of pages from pdf file

Posted on 2006-04-20
Last Modified: 2010-04-01
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.

Question by:massrico
    LVL 11

    Expert Comment

    >>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.

    LVL 19

    Accepted Solution

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

    for example:
    you can use this PDF API: (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:

    Enjoy :)

    Author Comment

    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

    LVL 11

    Expert Comment

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now