[ CCode ( has_construct_function = false ) ]
public Document.from_data (uint8[] data, string? password) throws Error
Creates a new Document.
If null
is returned, then error
will be set. Possible errors include those in the
Error and FileError domains.
Note that data
must remain valid for as long as the returned document exists. Prefer using
Document.from_bytes.
data |
the pdf data |
password |
password to unlock the file with, or |
length |
the length of |
A newly created Document, or |