TXTextControl.SaveSettings Class

The SaveSettings class provides properties for advanced settings and information during save operations. See the TextControl.Save method for more information.


public sealed class SaveSettings
[Visual Basic]
Public NotInheritable Class SaveSettings


Property Description
Author Sets the document's author which will be saved in the document.
BytesWritten Gets the number of bytes written during a save operation.
CreationDate Sets the document's creation date which will be saved in the document.
CreatorApplication Sets the application, which has created the document.
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.
DocumentKeywords Sets the document's keywords which will be saved in the document.
DocumentLevelJavaScriptActions Specifies an array of strings containing Javascript.
DocumentSubject Sets the document's subject string which will be saved in the document.
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.
LastModificationDate Sets the date the document is last modified.
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.
ReportingMergeBlockFormat Specifies how reporting merge blocks are handled when a document is saved.
SavedFile Read only. Gets the name and path of the file that has been saved.
SaveDocumentBackColor Specifies whether or not the document background color is saved.
SavedStreamType Read only. Gets the StreamType of the file that has been saved.
UserDefinedDocumentProperties Sets a dictionary with all user-defined document properties which will be saved in the document.
UserPassword Specifies the password for the user when the document is reopened.


The following example shows how to use the SaveSettings to create a password protected PDF document.

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)

See Also