AcroForm fields with OpenType font?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v5)  /  AcroForm fields with OpenType font?

DynamicPDF Generator for Java (v5) Forum

 Jan 24 2011 6:32 PM

I've read that AcroForm fields can only use the Core fonts in this version of DynamicPDF.  Can OpenType fonts be used in the new version (6.0)?


Chris McKinnon
Posted by a ceTe Software moderator
Hello Chris,

Yes, you can use any TTF and OTF fonts to set to the form fields using our version 6 DynamicPDF for Java product. You will have to create a OpenTypeFont object using the required font file and then use the font object to set it to the form filed using setFont method of the field by accessing it using it full name. Below is the sample code for it.

            MergeDocument document = new MergeDocument("C:/Temp/Test.pdf");
            OpenTypeFont fontObj=new OpenTypeFont("C://Windows/Fonts/Verdana.ttf");

Please feel free to download BETA edition of version 6 DynamicPDF for Java product from our website at: Also refer the sample examples downloaded with the product download.

ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 4:57 PM.