[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPdf

RenderToPdf Method

RenderToPdf(Stream, PdfSettings)

Creates a PDF document from the source HTML and saves it to a specified stream.

Declaration
public bool RenderToPdf(Stream outputStream, PdfSettings settings = null)
Public Function RenderToPdf(outputStream As Stream, Optional settings As PdfSettings = Nothing) As Boolean
Parameters
Type Name Description
Stream outputStream

The destination stream.

PdfSettings settings

The set of parameters for the output PDF.

Returns
Type Description
bool

True if PDF was successfully saved; otherwise, false.

RenderToPdf(string, PdfSettings)

Creates a PDF file from the source HTML.

Declaration
public bool RenderToPdf(string outputFilePath, PdfSettings settings = null)
Public Function RenderToPdf(outputFilePath As String, Optional settings As PdfSettings = Nothing) As Boolean
Parameters
Type Name Description
string outputFilePath

The destination file path.

PdfSettings settings

The set of parameters for the output PDF file.

Returns
Type Description
bool

True if the browser process has exited; otherwise, false.