Click or drag to resize

AspxToPdf Methods

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