RemovePageRedaction Class
Represents a redaction that removes a page (slide, worksheet, etc.) from a document.
Inheritance Hierarchy
SystemObject
  GroupDocs.RedactionRedaction
    GroupDocs.Redaction.RedactionsRemovePageRedaction

Namespace: GroupDocs.Redaction.Redactions
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 22.5
Syntax
public class RemovePageRedaction : Redaction

The RemovePageRedaction type exposes the following members.

Constructors
  NameDescription
Public methodRemovePageRedaction
Initializes a new instance of RemovePageRedaction class.
Properties
  NameDescription
Public propertyCount
Gets the count of pages to remove.
Public propertyDescription
Returns a string, describing the redaction and its parameters.
(Inherited from Redaction.)
Public propertyIndex
Gets start position index (0-based).
Public propertyOrigin
Gets seek reference position, the beginning or the end of a document.
Methods
  NameDescription
Public methodApplyTo
Applies the redaction to a given format instance.
(Overrides RedactionApplyTo(DocumentFormatInstance).)
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 remove the last page of the document.
C#
using (Redactor redactor = new Redactor(@"C:\test.pdf"))
{
   redactor.Apply(new RemovePageRedaction(PageSeekOrigin.End, 0, 1));
   redactor.Save()
}
See Also