Document.from_fd
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "21.12.0" ) ]
public Document.from_fd (int fd, string? password) throws Error
[ Version ( since = "21.12.0" ) ]
public Document.from_fd (int fd, string? password) throws Error
Creates a new Document reading the PDF contents from the file descriptor
fd
.
fd
must refer to a regular file, or STDIN, and be open for reading. Possible errors include those in the
Error and
FileError domains. Note that this function takes ownership of fd
; you must not operate on it again, nor close it.
Parameters:
fd |
a valid file descriptor |
password |
password to unlock the file with, or |
Returns:
a new Document, or |