In Class org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder it has a
method called private boolean isSubsettingPermitted(TrueTypeFont ttf)
throws IOException that checks if you are allowed to embed the font
This method is called when doing PDDocument save which is a bit late to
find out that you have embedded a font, that you should not have done so.
is it possible after you do a (or even before)
public static PDType0Font load(PDDocument doc, InputStream input) throws
IOException
to find out if you are allowed to embed the font, that you have got, and
then just add it so that it is not embedded, if you are not allowed to
embed it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]