/// <summary> /// Initializes a new instance of the <see cref="XForm"/> class that represents a page of a PDF document. /// </summary> /// <param name="document">The PDF document.</param> /// <param name="width">The width of the page.</param> /// <param name="height">The height of the page</param> public XForm(PDFDocument document, XUnit width, XUnit height) : this(document, new XRect(0, 0, width, height)) { }
/// <summary> /// Initializes a new instance of the XForm class such that it can be drawn on the specified graphics /// object. /// </summary> /// <param name="gfx">The graphics object that later is used to draw this form.</param> /// <param name="width">The width of the form.</param> /// <param name="height">The height of the form.</param> public XForm(XGraphics gfx, XUnit width, XUnit height) : this(gfx, new XSize(width, height)) { }