Fast, Lightweight Java PDF Reader and Image Viewer
Embed PDF and Image viewer in any Java client Application
Integrate a Java Viewer Into Your Code in Minutes
Find out how to download and set-up JPedal
Copy these lines of code into your Java code:
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.OPENFILE, "pdfFile.pdf");
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.OPENFILE, "image.tiff");
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.FORWARDPAGE); // Advance one page
viewer.executeCommand(ViewerCommands.BACKPAGE); // Retreat one page
viewer.executeCommand(ViewerCommands.FFORWARDPAGE); // Advance ten pages
viewer.executeCommand(ViewerCommands.FIRSTPAGE); // Go to the first page
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.SINGLE); // Single page mode
viewer.executeCommand(ViewerCommands.CONTINUOUS); // Continuous page moe
viewer.executeCommand(ViewerCommands.FACING); // Front facing page mode
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.SCALING, ViewerScaling.CUSTOM, "80"); // Scales the page to 80%
viewer.executeCommand(ViewerCommands.SCALING, ViewerScaling.FIT_WIDTH); // Scales the page to fit the width of the Viewer
Viewer viewer = new Viewer();
viewer.setupViewer();
// Highlight text on the page
viewer.executeCommand(
ViewerCommands.FIND,
"Hello", // The text to find
SearchType.CASE_SENSITIVE, // The search type
false, // Search for multiple terms
true // Search current page or whole document
);
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.SETDISPLAYBACKGROUND, Color.BLUE.getRGB()); // Set the background color
viewer.executeCommand(ViewerCommands.SETPAGECOLOR, Color.WHITE.getRGB()); // Set the page color
viewer.executeCommand(ViewerCommands.SETTEXTCOLOR, Color.BLACK.getRGB()); // Set the text color
JPedal Java PDF Viewer
Also provides viewing for common Image file formats
JPedal Java PDF Reader Key Features
JPedal provides a 100% Java PDF Viewer which is easy to integrate and customise into your Java applications as a Swing Component. Features include:
JPedal Viewer vs Adobe Acrobat
Restrict user access to a PDF file
JPedal makes it very easy for Java Developers to remove any Viewer functionality, locking down access and preventing access to the PDF files.
- Disable printing
- Keep document in memory
- Prevent text copying
- Disable load and save
- Add custom operations
- Remove any menu option or button
View common Image file formats
JPedal provides viewing support for common image file formats as well as PDF.
- Built-in support for JPG, PNG, TIFF
- Multi-tile Tiff supported
- Support additional formats if used with JDeli
- Disable load and save
- Add custom operations
- Remove any menu option or button
Print PDF Files
JPedal can print PDF files directly from the PDF Viewer.
- Select any available printer
- Preview output in GUI window
- Specify the scaling, page margins and resolution
- Choose any page range including odd or even pages or any sequence.
- Print in grayscale
- Print in fast draft mode
- Choose paper source by PDF page size
Localize Viewer
JPedal includes support for additional languages and makes it very easy to customize for any others.
- Fully supports Java ResourceBundle
- Currently supports - English, French, German
- Coming Soon - Chinese, Japanese
- Extensive tutorials on adding other languages
Customise Viewer Appearance
JPedal makes it very easy for Java Developers to change the Look and Feel Used.
- Dark mode
- Change colours
- Different fonts
- Prevent/change pop-up messages
- Unique icons
- Internal Frame
- Menu text
JPedal is absolutely easy to use and it provided the best results of all libraries we tested over the years. We need to create renditions of PDF files so that people can view them conveniently in the browser.
- Roman K. (Developer at German Digital Big Data Platform)
Support for JPedal is done extremely well and for continuously using the software, what the customer needs is good support for the issues we face. And it is superb in that respect.
- Developer (Large Multinational Corporation)