RemovePageRedaction

RemovePageRedaction class

Represents a redaction that removes a page (slide, worksheet, etc.) from a document.

public class RemovePageRedaction : Redaction

Constructors

Name Description
RemovePageRedaction(PageSeekOrigin, int, int) Initializes a new instance of RemovePageRedaction class.

Properties

Name Description
Count { get; } Gets the count of pages to remove.
virtual Description { get; } Returns a string, describing the redaction and its parameters.
Index { get; } Gets start position index (0-based).
Origin { get; } Gets seek reference position, the beginning or the end of a document.

Methods

Name Description
override ApplyTo(DocumentFormatInstance) Applies the redaction to a given format instance.

Remarks

Learn more

Examples

The following example demonstrates how to remove the last page of the document.

using (Redactor redactor = new Redactor(@"C:\test.pdf"))
{
   redactor.Apply(new RemovePageRedaction(PageSeekOrigin.End, 0, 1));
   redactor.Save()
}

See Also