PdfDocumentTrySaveAs Method

Attempt to save the PdfDocument to a file.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.3.2.0 (2020.3.2.0)
Syntax
public bool TrySaveAs(
	string FileName
)

Parameters

FileName
Type: SystemString
File Path

Return Value

Type: Boolean
}true if the file was saved successfully. false if an error occurred (e.g. file was locked or insufficient permissions).
See Also