0

It is quite straghtforward to render as a bitmap any page of a PDF file by using Apache pdfbox. But how to do it with iText?

david.perez
  • 6,090
  • 4
  • 34
  • 57
  • 1
    AFAIK itext doesn't do rendering into raster images. https://stackoverflow.com/questions/12935204/get-a-page-from-pdf-and-save-it-to-an-image-file-with-itext?lq=1 – Tilman Hausherr Sep 27 '19 at 08:20

1 Answers1

2

Ex-iText employee here.
This is currently not possible with iText.

If you'd look at the GitHub repositories of iText, you'd see that they also use an external tool ImageMagick to render PDF to image.

Joris Schellekens
  • 8,483
  • 2
  • 23
  • 54
  • Is it possible yet? – M Akin Aug 01 '23 at 22:26
  • No idea. I didn't keep up with `iText` after I quit. I moved on to other companies, started working in Python. Then I noticed there wasn't a great PDF library for Python. And I wrote one. I'm currently the author/ceo of `borb`. – Joris Schellekens Aug 02 '23 at 12:03
  • Congrats. We were using Python on a different project, but that library didn't handle pdf's with forms. I hope yours does much better. – M Akin Aug 02 '23 at 15:44