PeachDrawing.PDF.PdfOperation
PdfOperation.LoadStream(Stream, string) Method
Opens a PDF read from a stream, which is read to the end and left open.
public static PeachDrawing.PDF.PdfOperation LoadStream(System.IO.Stream pdf, string? password=null);
Parameters
pdf System.IO.Stream
a stream positioned at the start of the file
password System.String
the password, or null if the file needs none
Returns
PdfOperation
an operation whose pages are those of the file
Exceptions
PdfPasswordException
the password is missing or wrong