# Public Function SaveToFile(FilePath As String)

**Saves generated PDF to a disk.**

**Defined in**

`SwPDFDocument`

**Syntax**

`Call swPDFDocument.SaveToFile(filePath)`

**Parameters**

`filePath`

String. Destination file path for the generated PDF document.
