Package org.apache.pdfbox.pdmodel.font.encoding

Examples of org.apache.pdfbox.pdmodel.font.encoding.DictionaryEncoding


        differences.set(0374 + 1, COSName.getPDFName("udieresis"));
        differences.set(0304 + 1, COSName.getPDFName("Adieresis"));
        differences.set(0326 + 1, COSName.getPDFName("Odieresis"));
        differences.set(0334 + 1, COSName.getPDFName("Udieresis"));

        return new DictionaryEncoding(COSName.STANDARD_ENCODING, differences);
    }
View Full Code Here


     * @param fontEncoding
     */
    private void checkEncodingAsDictionary(COSBase fontEncoding)
    {
        COSDictionary encodingDictionary = COSUtils.getAsDictionary(fontEncoding, cosDocument);
        this.encoding = new DictionaryEncoding(encodingDictionary, false, null);
    }
View Full Code Here

                    // TTF built-in encoding is handled by PDTrueTypeFont#codeToGID
                    this.encoding = null;
                }
                else
                {
                    this.encoding = new DictionaryEncoding(encodingDict, !symbolic, builtIn);
                }
            }
        }
        else
        {
View Full Code Here

    {
        // this logic is based on Acrobat's behaviour, see see PDFBOX-2372
        // the Encoding entry cannot have Differences if we want "standard 14" font handling
        if (getEncoding() != null && getEncoding() instanceof DictionaryEncoding)
        {
            DictionaryEncoding dictionary = (DictionaryEncoding)getEncoding();
            if (dictionary.getDifferences().size() > 0)
            {
                // todo: do we need to check if entries actually differ from the base encoding?
                return false;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.pdmodel.font.encoding.DictionaryEncoding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.