RedactorSave Method (Stream, RasterizationOptions)
Saves the document to a stream, including custom location.

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 19.9
Syntax
public void Save(
	Stream document,
	RasterizationOptions rasterizationOptions
)

Parameters

document
Type: System.IOStream
Target stream
rasterizationOptions
Type: GroupDocs.Redaction.OptionsRasterizationOptions
Options to rasterize or not and to specify pages for rasterization
Examples

The following example demonstrates how to set options for the rasterization process.

C#
using (var redactor = new Redactor("SomePresentation.pptx"))
{
    // redact sensitive data on the first slide 

    var rasterizationOptions = new RasterizationOptions();
    rasterizationOptions.PageIndex = 0;
    rasterizationOptions.PageCount = 1;
    rasterizationOptions.Compliance = PdfComplianceLevel.PdfA1a;
    using (var stream = File.Open(Path.Combine(@"C:\Temp", "PresentationFirstSlide.pdf")))
    {
        redactor.Save(stream, rasterizationOptions);
    }
}
See Also