Skip to main content

PDFRenderer: Displaying all pages at once in a JScrollPane

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
victorkluck
Offline
Joined: 2014-02-17

I am new to Java and am writing a simple application that needs to display the contents of a PDF file in a single scrolling pane. I can get individual pages to display via getPage/showPage, but I'd like to create one object that contains all the pages and let the user scroll up and down through it.

Can anyone explain to me how to do that? Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
victorkluck
Offline
Joined: 2014-02-17

If there's a way to append the individual getPage results into a single PDF "page", I'd really appreciate knowing how to do that.

It's also important to me to know how to make the PDF display on the panel in as large a type size as possible, so that it's easier to read.

Thanks in advance for any help you can give me!