Remove font using iText

2019-08-18 03:36发布

问题:

I have a problem with my PDFs. They have a default font, Helvetica. This font is unused, but I need to develop a script that automatically deletes this font.

After asking two questions:

Unset PDF font with script

xhtml2pdf doesn't embed Helvetica

I finally discover iText. I've been trying to work with this library, and I made a few successful tests with Unembeding Fonts (example). But I can't find anything about deleting a whole font from de PDF.

Thanks a lot