[ CCode ( has_construct_function = false ) ]
public Document.from_data (uint8[] data, string? password) throws Error
Creates a new Document.
This requires directly managing data.length and data. Use
Document.from_bytes instead.
If null is returned, then throws will be set. Possible errors include those in the Error and FileError domains.
Note that data is not copied nor is a new reference to it created. It must remain valid and cannot be destroyed as long as
the returned document exists.
| data |
the pdf data |
| password |
password to unlock the file with, or null |
| length |
the length of |
|
A newly created Document, or null |