
The SaveSettings class provides properties for advanced settings and information during save operations. See the TextControl.Save method for more information.
[C#]
public sealed class SaveSettings
[Visual Basic]
Public NotInheritable Class SaveSettings
| Property | Description | |
| BytesWritten | ReadOnly. Gets the number of bytes written during a save operation. | |
| CssFileName | HTML only. Sets the path and filename of a CSS file belonging to a HTML document. | |
| CssSaveMode | HTML only. Specifies how to save stylesheet data with a HTML document. | |
| DigitalSignature | Specifies a DigitalSignature object, which defines an X.509 certificate. | |
| DocumentAccessPermissions | Specifies how a document can be accessed after it has been opened. | |
| DocumentBasePath | Sets a base path saved in the document that is used to resolve relative file paths. | |
| DocumentTitle | Sets the document's title that will be saved in the document. | |
| ImageCompressionQuality | Sets a value between 1 and 100, which is the quality of a lossy image compression used when a document is saved. | |
| ImageExportFilterIndex | Sets the format used for saving all images contained in the document. | |
| ImageMaxResolution | Sets the maximum resolution for all images in the document in dots per inch when the document is saved. | |
| ImageSaveMode | Determines whether the document's images are stored through its data or through its file reference. | |
| ImageSavePath | Sets a file path that is used to save resources like images when images are saved as file link. | |
| MasterPassword | Specifies the password for the document's access permissions. | |
| PageMargins | Sets the margins saved for the document's pages. | |
| PageSize | Sets the width and height saved for the document's pages. | |
| SavedFile | Read only. Gets the name and path of the file that has been saved. | |
| SavedStreamType | Read only. Gets the StreamType of the file that has been saved. | |
| UserPassword | Specifies the password for the user to open the document. |
The following example shows how to use the SaveSettings to create a password protected PDF document.
[C#]
TXTextControl.SaveSettings save = new TXTextControl.SaveSettings();
save.UserPassword = "TX Text Control";
textControl1.Save("test.pdf", TXTextControl.StreamType.AdobePDF, save);
[Visual Basic]
Dim save As TXTextControl.SaveSettings = New TXTextControl.SaveSettings()
save.UserPassword = "TX Text Control"
TextControl1.Save("test.pdf", TXTextControl.StreamType.AdobePDF, save)