[]
Creates a PDF document from the source HTML and saves it to a specified stream.
public bool RenderToPdf(Stream outputStream, PdfSettings settings = null)
Public Function RenderToPdf(outputStream As Stream, Optional settings As PdfSettings = Nothing) As Boolean
Type | Name | Description |
---|---|---|
Stream | outputStream | The destination stream. |
PdfSettings | settings | The set of parameters for the output PDF. |
Type | Description |
---|---|
bool | True if PDF was successfully saved; otherwise, false. |
Creates a PDF file from the source HTML.
public bool RenderToPdf(string outputFilePath, PdfSettings settings = null)
Public Function RenderToPdf(outputFilePath As String, Optional settings As PdfSettings = Nothing) As Boolean
Type | Name | Description |
---|---|---|
string | outputFilePath | The destination file path. |
PdfSettings | settings | The set of parameters for the output PDF file. |
Type | Description |
---|---|
bool | True if the browser process has exited; otherwise, false. |