Class PdfEditor
Provides methods to reorder, rotate, and remove pages from a PDF document.
public static class PdfEditor
- Inheritance
-
PdfEditor
- Inherited Members
Remarks
The PdfEditor class edits a PDF by deleting unwanted pages, applying rotations, and saving with the requested options.
Every method takes an optional CancellationToken. Outputs are available as an Attachment, a file, a Stream, or a byte array. To edit a PDF stored as a stream or byte array, wrap it in an Attachment first.
Methods
- Apply(Attachment, IReadOnlyList<PageEdit>, CancellationToken)
Applies a sequence of page edits to a PDF document and returns the result as an attachment.
- ApplyAsync(Attachment, IReadOnlyList<PageEdit>, CancellationToken)
Applies a sequence of page edits to a PDF document and returns the result as an attachment.
- ApplyToBytes(Attachment, IReadOnlyList<PageEdit>, CancellationToken)
Applies a sequence of page edits and returns the result as a byte array.
- ApplyToBytesAsync(Attachment, IReadOnlyList<PageEdit>, CancellationToken)
Applies a sequence of page edits and returns the result as a byte array.
- ApplyToFile(Attachment, IReadOnlyList<PageEdit>, string, CancellationToken)
Applies a sequence of page edits and writes the result to a file.
- ApplyToFileAsync(Attachment, IReadOnlyList<PageEdit>, string, CancellationToken)
Applies a sequence of page edits and writes the result to a file.
- ApplyToStream(Attachment, IReadOnlyList<PageEdit>, Stream, CancellationToken)
Applies a sequence of page edits and writes the result to a writable stream.
- ApplyToStreamAsync(Attachment, IReadOnlyList<PageEdit>, Stream, CancellationToken)
Applies a sequence of page edits and writes the result to a writable stream.