Example usage for org.apache.pdfbox.pdmodel.font.encoding DictionaryEncoding DictionaryEncoding

List of usage examples for org.apache.pdfbox.pdmodel.font.encoding DictionaryEncoding DictionaryEncoding

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.font.encoding DictionaryEncoding DictionaryEncoding.

Prototype

public DictionaryEncoding(COSDictionary fontEncoding, boolean isNonSymbolic, Encoding builtIn) 

Source Link

Document

Creates a new DictionaryEncoding from a PDF.

Usage

From source file:org.apache.fop.render.pdf.pdfbox.FontContainer.java

License:Apache License

Encoding getEncoding() {
    if (font instanceof PDSimpleFont) {
        if (((PDSimpleFont) font).getEncoding() instanceof DictionaryEncoding) {
            return new DictionaryEncoding((COSDictionary) ((PDSimpleFont) font).getEncoding().getCOSObject(),
                    true, null);//from   w ww  . j  a v  a  2 s  .co  m
        }
        return ((PDSimpleFont) font).getEncoding();
    }
    return null;
}