Pdf | |
The PdfRenderingResult type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfPageLastIndex | Gets or sets the zero-based index of the last page where content was rendered. | |
| PdfPageLastRectangle | Gets or sets the bounding rectangle of the content rendered on the last page. |
PdfDocument document = new PdfDocument(); PdfPage page = document.AddPage(); PdfRectangleElement rect = new PdfRectangleElement(20, 20, 200, 100); PdfRenderingResult result = page.Add(rect); int lastPage = result.PdfPageLastIndex; SelectPdf.Universal.Drawing.RectangleF bounds = result.PdfPageLastRectangle; document.Save("out.pdf"); document.Close();