You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Lina Larsson <li...@gmail.com> on 2017/01/16 07:45:43 UTC

Re: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?

I would like to use a OFT-font in AcroForm fields, is that possible by now?


Tanks,

Lina


On 2016-08-17 00:55 (+0100), John Hewson <j....@jahewson.com> wrote:

>

> > On 16 Aug 2016, at 13:48, Tilman Hausherr <TH...@t-online.de> wrote:>

> > >

> > 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);>

>

> No, it won%u2019t. Unfortunately we don%u2019t support embedding OTFs.
One reason for this is that we don%u2019t have an OTF subsetter.>

>

> %u2014 John>

>

> > >

> > >

> > --------------------------------------------------------------------->

> > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org>

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

> > >

>

>

> --------------------------------------------------------------------->

> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org>

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

>

>

Re: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 16.01.2017 um 08:45 schrieb Lina Larsson:
> I would like to use a OFT-font in AcroForm fields, is that possible by now?

No, and no work has been done. Set yourself as a watcher on
https://issues.apache.org/jira/browse/PDFBOX-2482


Tilman

>
>
> Tanks,
>
> Lina
>
>
> On 2016-08-17 00:55 (+0100), John Hewson <j....@jahewson.com> wrote:
>
>>> On 16 Aug 2016, at 13:48, Tilman Hausherr <TH...@t-online.de> wrote:>
>>> 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);>
>> No, it won%u2019t. Unfortunately we don%u2019t support embedding OTFs.
> One reason for this is that we don%u2019t have an OTF subsetter.>
>
>> %u2014 John>
>>> --------------------------------------------------------------------->
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org>
>>> For additional commands, e-mail: users-help@pdfbox.apache.org>
>> --------------------------------------------------------------------->
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org>
>> For additional commands, e-mail: users-help@pdfbox.apache.org>



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