Esempio n. 1
0
 private void loadCmappers()
 {
     if (m_encoding == null)
     {
         m_encoding  = new FontEncoding(GetDictionary()["Encoding"]);
         m_toUnicode = new ToUnicode(GetDictionary()["ToUnicode"] as PDFDictionaryStream);
     }
 }
Esempio n. 2
0
        private void loadCmapper()
        {
            if (_toUnicode == null)
            {
                _toUnicode = new ToUnicode(GetDictionary()["ToUnicode"] as PDFDictionaryStream);

                PDFArray descendantFonts = GetDictionary()["DescendantFonts"] as PDFArray;
                if (descendantFonts != null)
                {
                    PDFDictionary font = descendantFonts[0] as PDFDictionary;
                    if (font != null)
                    {
                        _cidToGIDMap = new CIDToGIDMap(font["CIDToGIDMap"]);
                    }
                }

                if (_cidToGIDMap == null)
                {
                    _cidToGIDMap = new CIDToGIDMap(null);
                }
            }
        }