RasterizationOptions Class
Provides options for converting files into PDF.
Inheritance Hierarchy
SystemObject
  GroupDocs.Redaction.OptionsRasterizationOptions

Namespace: GroupDocs.Redaction.Options
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 20.7
Syntax
public class RasterizationOptions

The RasterizationOptions type exposes the following members.

Constructors
  NameDescription
Public methodRasterizationOptions
Initializes a new instance.
Properties
  NameDescription
Public propertyCompliance
Gets or sets the PDF Compliance level.
Public propertyEnabled
Gets or sets a value indicating whether all pages in the document need to be converted to images and put in a single PDF file. TRUE by default, set to FALSE in order to avoid rasterization.
Public propertyPageCount
Gets or sets the number of pages to be converted into PDF.
Public propertyPageIndex
Gets or sets the index of the first page (0-based) to convert into PDF.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
Learn more
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