[ 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
g_io_error_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 null |
| cancellable |
a Cancellable, or null |
|
a new Document, or null |