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: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?
Date Tue, 16 Aug 2016 20:48:07 GMT
Am 16.08.2016 um 21:25 schrieb hamena314:
> |PDType0Font font = PDType0Font.load(doc, new File("MyFont.otf")); | 


I wonder if this would work:

OTFParser otfp = new OTFParser(true);
TrueTypeFont ttf = otfp.parse(new File("MyFont.otf"));
PDType0Font font = PDType0Font.load(doc, ttf, true);




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


Mime
View raw message