[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.22" ) ]
public Document.from_stream (InputStream stream, int64 length, string? password, Cancellable? cancellable = null) throws Error
Creates a new Document reading the PDF contents from stream
.
Note that the given InputStream must be seekable or NOT_SUPPORTED
will be returned. Possible errors include those in the Error,
FileError and G_IO_ERROR
domains.
stream |
a InputStream to read from |
length |
the stream length, or -1 if not known |
password |
password to unlock the file with, or |
cancellable |
a Cancellable, or |
a new Document, or |