[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.HtmlPage.SaveAsPdf

SaveAsPdf Method

SaveAsPdf(string, PdfOptions)

Creates a PDF file from the current page.

Declaration
public void SaveAsPdf(string outputFilePath, PdfOptions options = null)
Public Sub SaveAsPdf(outputFilePath As String, Optional options As PdfOptions = Nothing)
Parameters
Type Name Description
string outputFilePath

The destination file path.

PdfOptions options

The set of parameters for the output PDF file.

SaveAsPdf(Stream, PdfOptions)

Saves the current page to a stream in PDF format.

Declaration
public void SaveAsPdf(Stream outputStream, PdfOptions options = null)
Public Sub SaveAsPdf(outputStream As Stream, Optional options As PdfOptions = Nothing)
Parameters
Type Name Description
Stream outputStream

The destination stream.

PdfOptions options

The set of parameters for the output PDF document.