RedactorSave Method (SaveOptions)
Saves the document to a file.

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 21.3
Syntax
public string Save(
	SaveOptions saveOptions
)

Parameters

saveOptions
Type: GroupDocs.Redaction.OptionsSaveOptions
Options to add suffix or rasterize

Return Value

Type: String
Path to redacted document
Examples

The following example demonstrates how to save a document using SaveOptions.

C#
using (Redactor redactor = new Redactor(@"C:\sample.pdf"))
{
   // Document redaction goes here
   // ...

   // Save the document with default options (convert pages into images, save as PDF)
   redactor.Save();

   // Save the document in original format overwriting original file
   redactor.Save(new SaveOptions() { AddSuffix = false, RasterizeToPDF = false });

   // Save the document to "*_Redacted.*" file in original format
   redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });

   // Save the document to "*_AnyText.*" (e.g. timestamp instead of "AnyText") in its file name without rasterization
   redactor.Save(new SaveOptions(false, "AnyText"));
}
See Also