Page 1 of 1

Obtaining a list of Fonts Used in a Document

PostPosted: Tue Jul 09, 2019 12:26 am
by dmekonnen
Greetings,

I'm looking for the API to obtain a list of all fonts in use by a document? In my use case I'm just looking for a list of the font names (no concern for mapping or embedding, just need the names). Is there a single API for this, or if not what approach should be taken?

thanks!

-Daniel

Re: Obtaining a list of Fonts Used in a Document

PostPosted: Tue Jul 09, 2019 10:57 am
by jason
Try MainDocumentPart's:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
public Set<String> fontsInUse()
 
Parsed in 0.013 seconds, using GeSHi 1.0.8.4