Method FromStream

Namespace
SoftZenPdf.Redact
Assembly
SoftZenPdf.Redact.dll

FromStream(Stream, string?)

Opens a PDF from a stream for redaction. The stream is read from its current position to the end and left open.

public static PdfRedactor FromStream(Stream stream, string? password = null)

Parameters

stream Stream

A readable stream holding the complete PDF file.

password string

For encrypted files, the user or owner password.

Returns

PdfRedactor