Example #1
0
 public virtual void RemoveID(IDReferences idReferences)
 {
     if (((FObj)this).properties.GetProperty("id") == null
         || ((FObj)this).properties.GetProperty("id").GetString() == null)
     {
         return;
     }
     idReferences.RemoveID(((FObj)this).properties.GetProperty("id").GetString());
     int numChildren = this.children.Count;
     for (int i = 0; i < numChildren; i++)
     {
         FONode child = (FONode)children[i];
         if ((child is FObj))
         {
             ((FObj)child).RemoveID(idReferences);
         }
     }
 }
Example #2
0
 public override void RemoveID(IDReferences idReferences) { }
Example #3
0
 public virtual void setIDReferences(IDReferences idReferences)
 {
     this.idReferences = idReferences;
 }
Example #4
0
 public void Render(Page page) {
     this.idReferences = page.getIDReferences();
     this.pdfResources = this.pdfDoc.getResources();
     this.pdfDoc.setIDReferences(idReferences);
     this.RenderPage(page);
     this.pdfDoc.output();
 }
Example #5
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;
        }