JPedal includes a large number of example PDF applications written in Java for you to use and customise. Each one is described below along with a link to code and any related items.
PDF to image conversion
- ConvertPagesToImages – fully automated program to rasterize PDF pages as images and optionally scale.
- ConvertPagesToHiResImages – extract PDF pages at the best possible quality. If the images are larger than the page, it scales the page up rather than scaling the image down.
- PDF to image conversion very simple example shown in the Java code FAQ – just the minimum code needed for PDF to image conversion
- Viewer is a very comprehensive java PDF viewer in Swing which is totally configurable.
- SilentPrinting provides an example of how to print PDF files automatically from Java.
- Clipped Image extraction – fully automated extraction of PDF page images as tif, png or jpeg with ability to define output dimensions and image quality. Created to help a large catalogue company put images online.
- ExtractImages extracts and saves images from a PDF file. Extracts the raw images so also consider Clipped Image extraction.
- ExtractStructuredContent extracts any Structured content (text with additional metatags to preserve structure).
- ExtractTextInRectangle extracts text in any rectangular area.
- ExtractTextAsWordlist will generate a list of words on the PDF page with co-ordinates.
- ExtractOutline will extract the outline tree from a PDF file if present.
PDF text Search
- FindTextInRectangle will find locations of the word on the PDF page.