Hi,

Am 06.05.2015 um 18:09 schrieb [email protected]:
> 
> Hello,
> 
> in one of my programs, I assign a TTF barcode font to an AcroForm.
> 
> How can I assign it to a particular field (the one containing the barcode)?

The font will have a COSName in the AcroForm Resources dictionary. You'd need 
to set the default appearance string (the DA entry) to use that font using the 
Tf operator. 

Assuming the font has the name /Foo the DA string will be similar to 

/Foo 10.0 Tf

where 

/Foo will point to the resource and
10.0 will be the size

BR
Maruan




> 
> Many thanks.
> 
> Philippe
> 
> 
> final PDResources res = new PDResources();
> res.addFont(font0);
> finalDocAcroForm.setDefaultResources(res);
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to