Click or drag to resize
Pdf Library for .NET

PdfRenderingResult Class

Contains the result of adding an element to a PDF page or template — the index of the last page the element rendered on and the bounding rectangle of the content on that page. Returned by Add(PdfPageElement).
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfRenderingResult
    SelectPdf.UniversalPdfTextElementRenderingResult

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfRenderingResult

The PdfRenderingResult type exposes the following members.

Properties
 NameDescription
Public propertyPdfPageLastIndex Gets or sets the zero-based index of the last page where content was rendered.
Public propertyPdfPageLastRectangle Gets or sets the bounding rectangle of the content rendered on the last page.
Top
Example
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();
See Also