/// <summary> /// Overrides the base text reader to create a new array of operations that has one op - a proxy that this component will update one the layout is completed /// </summary> /// <param name="context"></param> /// <param name="style"></param> /// <returns></returns> protected override Text.PDFTextReader CreateReader(PDFLayoutContext context, Styles.Style style) { _doc = context.DocumentLayout; _renderpageindex = _doc.CurrentPageIndex; _fullstyle = style; _pgstyle = context.DocumentLayout.CurrentPage.FullStyle; string text = this.GetDisplayText(_renderpageindex, style, false); Scryber.Text.PDFTextProxyOp op = new Text.PDFTextProxyOp(this, "PageNumber", text); Scryber.Text.PDFArrayTextReader array = new Text.PDFArrayTextReader(new Text.PDFTextOp[] { op }); _numberProxy = op; return(array); }
protected override Text.PDFTextReader CreateReader(PDFLayoutContext context, Styles.Style fullstyle) { _doc = context.DocumentLayout; _found = this.LookupExternalComponent(false, context, this.ComponentName); _componentpageindex = -1; if (null != _found) { this._componentpageindex = _found.PageLayoutIndex; } _fullstyle = fullstyle; string text = this.GetDisplayText(_componentpageindex, fullstyle, false); Scryber.Text.PDFTextProxyOp op = new Text.PDFTextProxyOp(this, "PageOf", text); Scryber.Text.PDFArrayTextReader array = new Text.PDFArrayTextReader(new Text.PDFTextOp[] { op }); _numberProxy = op; return(array); }