Click or drag to resize

AspxToPdf Class

Renders any .Net Web Page (ASPX) into a PDF Document. Simply add it to the Page_Load event.
Inheritance Hierarchy
SystemObject
  IronPdfAspxToPdf

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.0.26589 (4.4.0.6)
Syntax
public static class AspxToPdf

The AspxToPdf type exposes the following members.

Methods
  NameDescription
Public methodStatic memberRenderThisPageAsPdf
Automatically renders any ASPX page into PDF instead of Html. Use it in the Page_Load Event.

Example:

protected void Page_Load(object sender, EventArgs e){ 
                   IronPdf.AspxToPdf.RenderThisPageAsPdf(FileBehavior.Attachment, "MyPdf.pdf", new  PdfPrintOptions(){ Dpi = 300 });
                 }
Top
See Also