Document.from_data


Description:

[ 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.

Parameters:

data

the pdf data

password

password to unlock the file with, or null

length

the length of data

Returns:

A newly created Document, or null




2022 vala-language.org