public void Render(Page page) { this.idReferences = page.getIDReferences(); this.pdfResources = this.pdfDoc.getResources(); this.pdfDoc.setIDReferences(idReferences); this.RenderPage(page); this.pdfDoc.output(); }
public void Render(Page page) { this.pdfResources = this.pdfCreator.GetResources(); // this.idReferences = page.getIDReferences(); this.pdfCreator.SetIDReferences(idReferences); // this.RenderPage(page); this.pdfCreator.FlushOutput(); }
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); } } }
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; }
public void SetIDReferences(IDReferences idReferences) { this.idReferences = idReferences; }
public virtual void setIDReferences(IDReferences idReferences) { this.idReferences = idReferences; }
public override Status Layout(Area area) { if (!(area is BlockArea)) { FonetDriver.ActiveDriver.FireFonetWarning( "Page-number-citation outside block area"); return(new Status(Status.OK)); } IDReferences idReferences = area.getIDReferences(); this.area = area; if (this.marker == MarkerStart) { AccessibilityProps mAccProps = propMgr.GetAccessibilityProps(); AuralProps mAurProps = propMgr.GetAuralProps(); BorderAndPadding bap = propMgr.GetBorderAndPadding(); BackgroundProps bProps = propMgr.GetBackgroundProps(); MarginInlineProps mProps = propMgr.GetMarginInlineProps(); RelativePositionProps mRelProps = propMgr.GetRelativePositionProps(); ColorType c = this.properties.GetProperty("color").GetColorType(); this.red = c.Red; this.green = c.Green; this.blue = c.Blue; this.wrapOption = this.properties.GetProperty("wrap-option").GetEnum(); this.whiteSpaceCollapse = this.properties.GetProperty("white-space-collapse").GetEnum(); this.refId = this.properties.GetProperty("ref-id").GetString(); if (this.refId.Equals("")) { throw new FonetException("page-number-citation must contain \"ref-id\""); } this.id = this.properties.GetProperty("id").GetString(); idReferences.CreateID(id); ts = new TextState(); this.marker = 0; } if (marker == 0) { idReferences.ConfigureID(id, area); } pageNumber = idReferences.getPageNumber(refId); if (pageNumber != null) { this.marker = FOText.addText((BlockArea)area, propMgr.GetFontState(area.getFontInfo()), red, green, blue, wrapOption, null, whiteSpaceCollapse, pageNumber.ToCharArray(), 0, pageNumber.Length, ts, VerticalAlign.BASELINE); } else { BlockArea blockArea = (BlockArea)area; LineArea la = blockArea.getCurrentLineArea(); if (la == null) { return(new Status(Status.AREA_FULL_NONE)); } la.changeFont(propMgr.GetFontState(area.getFontInfo())); la.changeColor(red, green, blue); la.changeWrapOption(wrapOption); la.changeWhiteSpaceCollapse(whiteSpaceCollapse); la.addPageNumberCitation(refId, null); this.marker = -1; } if (this.marker == -1) { return(new Status(Status.OK)); } else { return(new Status(Status.AREA_FULL_NONE)); } }
public override void setIDReferences(IDReferences idReferences) { mainReferenceArea.setIDReferences(idReferences); }
public override void RemoveID(IDReferences idReferences) { }