Am 10.06.2015 um 23:24 schrieb Jonas Karlsson:
I'm trying to extract fonts from PDF documents. I get the pages from a
PDDocument, then call 'page.getResources().getFonts()' on each page.

When I pass in a PDF file that contains only images, getFonts() still
returns a number of fonts (Arial, Courier New, ArialMT, CourierNewPSMT).

If I inspect the PDF file with a pdf viewer (eg. Preview on OS X), no fonts
are listed. Is pdfbox adding the fonts?

No

Is it possible to detect whether
there are no fonts in the original document?

Upload the document somewhere, and we'll tell you. Or use the PDFDebugger command line utility. Or an editor, search for /Font.

Tilman

thanks for any suggestions,

_jonas



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to