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

stream Stream

A readable stream holding the complete PDF file.

password string

For encrypted files, the user or owner password.

Returns

PdfFormFiller

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.