pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: fonts found in files with no fonts
Date Wed, 10 Jun 2015 21:29:10 GMT
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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message