AspxToPdfRenderThisPageAsPdf Method (ActionPdfDocument, PdfPrintOptions)

Automatically renders this ASPX page into PDF and returns that PDF document in an callback. Use it in the Page_Load Event.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public static void RenderThisPageAsPdf(
	Action<PdfDocument> callback,
	PdfPrintOptions printOptions = null


Type: SystemActionPdfDocument
An callnack method that handles the rendered PdfDocument object.
printOptions (Optional)
Type: IronPdfPdfPrintOptions
Sets PDF output options such as PDF Title, paper-size, DPI, headers and footers.
See Also
Install with Nuget