示例#1
0
        public void StopRenderer()
        {
            fontSetup.AddToResources(new PdfFontCreator(pdfCreator), pdfCreator.GetResources());
            pdfCreator.OutputTrailer();

            pdfCreator       = null;
            pdfResources     = null;
            currentStream    = null;
            currentAnnotList = null;
            currentPage      = null;

            idReferences         = null;
            currentFontName      = String.Empty;
            currentFill          = null;
            prevUnderlineColor   = null;
            prevOverlineColor    = null;
            prevLineThroughColor = null;
            fontSetup            = null;
            fontInfo             = null;
        }
示例#2
0
 /// <summary>
 /// </summary>
 /// <param name="fontInfo"></param>
 public void SetupFontInfo(FontInfo fontInfo)
 {
     this.fontInfo  = fontInfo;
     this.fontSetup = new FontSetup(
         fontInfo, (options == null) ? FontType.Link : options.FontType);
 }
示例#3
0
 /// <summary>
 /// </summary>
 /// <param name="fontInfo"></param>
 public void SetupFontInfo(FontInfo fontInfo) {
     this.fontInfo = fontInfo;
     this.fontSetup = new FontSetup(
         fontInfo, (options == null) ? FontType.Link : options.FontType);
 }
示例#4
0
        public void StopRenderer() {
            fontSetup.AddToResources(new PdfFontCreator(pdfDoc), pdfDoc.getResources());
            pdfDoc.outputTrailer();

            pdfDoc = null;
            pdfResources = null;
            currentStream = null;
            currentAnnotList = null;
            currentPage = null;

            idReferences = null;
            currentFontName = String.Empty;
            currentFill = null;
            prevUnderlineColor = null;
            prevOverlineColor = null;
            prevLineThroughColor = null;
            fontSetup = null;
            fontInfo = null;
        }