Marco
Marco

Reputation: 11

Itext7: render PDF page to image

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

Upvotes: 1

Views: 2027

Answers (1)

Joris Schellekens
Joris Schellekens

Reputation: 9057

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.

Upvotes: 1

Related Questions