Rendering
Page Rendering
Aspose.PDF FOSS for Java provides BmpDevice for rendering PDF pages to BMP image
files and PdfPageRenderer for programmatic page rendering.
BmpDevice Usage
BmpDevice.process(page, outputPath) renders a single page:
try (Document doc = new Document("input.pdf")) {
BmpDevice device = new BmpDevice();
for (int i = 1; i <= doc.getPages().size(); i++) {
device.process(doc.getPages().get(i), "page" + i + ".bmp");
}
}PdfConverter
PdfConverter provides a higher-level API for converting PDF pages to image files,
with configurable resolution and coordinate range settings.
Resolution
Rendering resolution controls the image size in pixels. Higher resolution values produce sharper images at the cost of larger file sizes. Standard screen resolution is 72 DPI; print-quality rendering typically uses 150–300 DPI.