Click or drag to resize
Pdf Library for .NET

PdfDocumentSave(String) Method

Saves the PDF document to a file.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public void Save(
	string fileName
)

Parameters

fileName  String
The path to the file where the document will be saved.
Exceptions
ExceptionCondition
PdfDocumentExceptionThrown when the document cannot be written to the file.
Example
PdfDocument document = new PdfDocument();
document.AddPage();
document.Save("out.pdf");
document.Close();
See Also