Click or drag to resize
DocumentModelPageSave Method (String)
Saves the document page to a file with the specified path. Path must include file extension.

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1213
Syntax
public void Save(
	string path
)

Parameters

path
Type: SystemString
The path to which to save the document page.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf file extension is not specified or not supported. If file extension is not recognized, use Save(String, SaveOptions) method overload instead.
Remarks
File extension that is extracted from the path is used to create the appropriate SaveOptions derived class instance that is then passed to the Save(String, SaveOptions) method.

Following file extensions are supported:

  • Portable Document Format: .pdf
See Also