Itext7: render PDF page to image

1.8k views Asked by At

Can I render a PDF Page to a real image object (e.g. BufferedImage) using IText 7?

1

There are 1 answers

4
Joris Schellekens On

If you really want to do this, consider using GhostScript.

Ghostscript is a suite of software based on an interpreter for Adobe Systems' PostScript and Portable Document Format (PDF) page description languages. Its main purposes are the rasterization or rendering of such page description language files, for the display or printing of document pages, and the conversion between PostScript and PDF files. -- wikipedia

As Bruno said, iText generally does not go into the rendering domain.

However, keep in mind what kind of a situation you're creating for the people who wish to use this "document" after you're done with it. Text-extraction will no longer work (unless you OCR it), you lose any search functionality or meta-information, etc.