Office .NET Class Library
Show/Hide TOC

# TextDocumentSaveAsPdf(String, Boolean) Method

Saves the document in PDF format.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office (in Independentsoft.Office.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public void SaveAsPdf(
    	string file,
    	bool overwrite
    )

VB

    Public Sub SaveAsPdf (
    	file As String,
    	overwrite As Boolean
    )

#### Parameters

file String
  The path of the file to save.
overwrite Boolean
  If true, overwrites the existing file.

## See Also

#### Reference

TextDocument Class
SaveAsPdf Overload
Independentsoft.Office.Odf Namespace