Пример #1
0
 public static PdfType3CharProc Wrap(PdfDirectObject baseObject, PdfType3Font font)
 {
     if (baseObject == null)
     {
         return(null);
     }
     if (baseObject.Wrapper is PdfType3CharProc charProc)
     {
         return(charProc);
     }
     if (baseObject is PdfReference pdfReference && pdfReference.DataObject?.Wrapper is PdfType3CharProc referenceCharProc)
     {
         baseObject.Wrapper = referenceCharProc;
         return(referenceCharProc);
     }
     return(new PdfType3CharProc(font, baseObject));
 }
Пример #2
0
 public PdfType3CharProc(PdfType3Font font, PdfDirectObject charStream)
     : base(charStream)
 {
     this.font = font;
 }