Method FromBytes

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

FromBytes(byte[], string?)

Opens a PDF form held in memory for filling.

public static PdfFormFiller FromBytes(byte[] data, string? password = null)

Parameters

data byte[]

The complete PDF file.

password string

For encrypted files, the user or owner password.

Returns

PdfFormFiller

Exceptions

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.