Example usage for com.itextpdf.text.pdf BaseFont getCodePagesSupported

List of usage examples for com.itextpdf.text.pdf BaseFont getCodePagesSupported

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BaseFont getCodePagesSupported.

Prototype

public String[] getCodePagesSupported() 

Source Link

Document

Gets the code pages supported by the font.

Usage

From source file:book.pdfabc.chapter05.C0505_SupportedEncoding.java

public void listEncodings(BaseFont bf) {
    System.out.println(bf.getPostscriptFontName());
    String[] encoding = bf.getCodePagesSupported();
    for (String enc : encoding) {
        System.out.print('\t');
        System.out.println(enc);//  w w  w  . j a v a2 s .c om
    }
}