void ParseToUnicode(PdfName name) { var uniDec = _file.GetObject(name); if (uniDec.IsStream) { using (var ms = new MemoryStream(uniDec.Stream.Bytes)) using (var br = new BinaryReader(ms)) { _mapToUnicode = ToUnicodeParser.Parse(br); } uniDec.Trace("ToUnicode"); } else { throw new ArgumentException("ToUnicode is not a stream"); } }
ToUnicodeParser(BinaryReader reader) { _lexer = new Lexer(reader); _mapper = new MapToUnicode(); }