Example: This example shows how to Change the encoding of a built in font.
import com.cete.dynamicpdf.*; import com.cete.dynamicpdf.text.*; import com.cete.dynamicpdf.pageelements.*; public class MyClass{ public static void main(String args[]){ // Create a PDF Document Document document = new Document(); // Create a Page and add it to the document Page page = new Page(); document.getPages().add(page); // Create a core font with a specified encoding Font centralEuropeHelveticaFont = new Helvetica( Encoder.getCentralEurope() ); // Use the font in a text area Page Element page.getElements().add( new TextArea( "Text using the Central Europe encoder", 0, 0, 200, 12, centralEuropeHelveticaFont, 12 ) ); // Save the PDF document.draw("[PhysicalPath]/MyDocument.pdf"); } }