Method FromStream
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
FromStream(Stream, string?)
Opens a PDF form from a stream for filling. The stream is read from its current position to the end and left open.
public static PdfFormFiller FromStream(Stream stream, string? password = null)
Parameters
streamStreamA readable stream holding the complete PDF file.
passwordstringFor encrypted files, the user or owner password.
Returns
Exceptions
- ArgumentException
The stream cannot be read.
- InvalidOperationException
The PDF has no interactive form.
- NotSupportedException
The PDF needed repair to open.
- UnauthorizedAccessException
The PDF's permissions do not allow filling forms; open it with the owner password.
- PdfPasswordException
The file is encrypted and the password is missing or wrong.