RasterizationOptions Class |
Namespace: GroupDocs.Redaction.Options
The RasterizationOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | RasterizationOptions |
Initializes a new instance.
|
Name | Description | |
---|---|---|
![]() | Compliance |
Gets or sets the PDF Compliance level.
|
![]() | Enabled |
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.
|
![]() | PageCount |
Gets or sets the number of pages to be converted into PDF.
|
![]() | PageIndex |
Gets or sets the index of the first page (0-based) to convert into PDF.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
The following example demonstrates how to set options for the rasterization process.
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); } }