pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clifford <cliffo...@paprika-software.com>
Subject Embedding True Type fonts determine if it is allowed
Date Thu, 17 Nov 2016 17:13:20 GMT
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: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message