internal PDFRenderContext(DrawingOrigin origin, int pageCount, PDFOutputFormatting format, Styles.StyleStack stack, PDFItemCollection items, PDFTraceLog log, PDFPerformanceMonitor perfmon, IPDFDocument document) : base(stack, items, log, perfmon, document) { this._origin = origin; this._offset = new PDFPoint(); this._space = new PDFSize(); this._pgCount = pageCount; this._pgindex = 0; this._format = format; }
public static PDFGraphics Create(PDFWriter writer, bool ownswriter, IPDFResourceContainer rsrc, DrawingOrigin origin, PDFSize size, PDFContextBase context) { if (origin == DrawingOrigin.BottomLeft) { throw new ArgumentException(Errors.GraphicsOnlySupportsTopDownDrawing, "origin"); } PDFGraphics g = new PDFGraphics(writer, size, rsrc); g.OwnsWriter = ownswriter; g.Context = context; return(g); }
// // .ctor // public PDFRenderContext(DrawingOrigin origin, int pageCount, PDFOutputFormatting format, Styles.Style root, PDFItemCollection items, PDFTraceLog log, PDFPerformanceMonitor perfmon, IPDFDocument document) : this(origin,pageCount,format, new Scryber.Styles.StyleStack(root), items, log, perfmon, document) { }