RemovePageRedaction
Leave feedback
On this page
Represents a redaction that removes a page (slide, worksheet, etc.) from a document.
public class RemovePageRedaction : Redaction
| Name | Description |
|---|---|
| RemovePageRedaction(PageSeekOrigin, int, int) | Initializes a new instance of RemovePageRedaction class. |
| 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. |
| Name | Description |
|---|---|
| override ApplyTo(DocumentFormatInstance) | Applies the redaction to a given format instance. |
Learn more
- More details about applying redactions: Redaction basics
- More details about removing pages: Remove page redaction
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()
}
- class Redaction
- namespace GroupDocs.Redaction.Redactions
- assembly GroupDocs.Redaction
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.