TX Text Control .NET Documentation

SaveSettings Class

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


AuthorSets the document's author which will be saved in the document.
BytesWrittenGets the number of bytes written during a save operation.
CreationDateSets the document's creation date which will be saved in the document.
CreatorApplicationSets the application, which has created the document.
CssFileNameHTML only. Sets the path and filename of a CSS file belonging to a HTML document.
CssSaveModeHTML only. Specifies how to save stylesheet data with a HTML document.
DigitalSignatureSpecifies a DigitalSignature object, which defines an X.509 certificate.
DocumentAccessPermissionsSpecifies how a document can be accessed after it has been opened.
DocumentBasePathSets a base path saved in the document that is used to resolve relative file paths.
DocumentKeywordsSets the document's keywords which will be saved in the document.
DocumentLevelJavaScriptActionsSpecifies an array of strings containing Javascript.
DocumentSubjectSets the document's subject string which will be saved in the document.
DocumentTitleSets the document's title that will be saved in the document.
ImageCompressionQualitySets a value between 1 and 100, which is the quality of a lossy image compression used when a document is saved.
ImageExportFilterIndexSets the format used for saving all images contained in the document.
ImageMaxResolutionSets the maximum resolution for all images in the document in dots per inch when the document is saved.
ImageSaveModeDetermines whether the document's images are stored through its data or through its file reference.
ImageSavePathSets a file path that is used to save resources like images when images are saved as file link.
LastModificationDateSets the date the document is last modified.
MasterPasswordSpecifies the password for the document's access permissions.
PageMarginsSets the margins saved for the document's pages.
PageSizeSets the width and height saved for the document's pages.
SavedFileRead only. Gets the name and path of the file that has been saved.
SavedStreamTypeRead only. Gets the StreamType of the file that has been saved.
UserPasswordSpecifies 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)

See Also

Call us: +1 704-544-7445 (United States)





Buy Now

About Text Control

Founded in 1991, Text Control is an award-winning Visual Studio Industry Partner and leading vendor of word processing and reporting components for Microsoft development technologies. The products help thousands of developers add comprehensive word processing functionality to their applications. Text Control is 100% self-owned and independent of all investor decisions. Customers benefit from these years of experience, large user-base, and at the same time, appreciate developing with a mature, reliable product.

SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100Visual Studio 2015 Launch PartnerVisual Studio 2013 Launch PartnerVisual Studio 2012 Launch PartnerVisual Studio Partner