Save

Save()

Saves the document to a file with the following options: AddSuffix = true, RasterizeToPDF = true.

public string Save()

Return Value

Path to redacted document

See Also


Save(SaveOptions)

Saves the document to a file.

public string Save(SaveOptions saveOptions)
Parameter Type Description
saveOptions SaveOptions Options to add suffix or rasterize

Return Value

Path to redacted document

Examples

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

    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


Save(Stream, SaveOptions)

Saves the document to the specified stream.

public void Save(Stream document, SaveOptions saveOptions)
Parameter Type Description
document Stream The target stream.
saveOptions SaveOptions The save options that control rasterization, the output file name suffix, and document-specific save settings.

See Also