save_to_fd


Description:

[ Version ( since = "21.12.0" ) ]
public bool save_to_fd (int fd, bool include_changes) throws Error

Saves this.

Any change made in the document such as form fields filled, annotations added or modified will be saved if include_changes is true, or discarded i include_changes is false.

Note that this function takes ownership of fd; you must not operate on it again, nor close it.

If error is set, false will be returned. Possible errors include those in the FileError domain.

Parameters:

this

a Document

fd

a valid file descriptor open for writing

include_changes

whether to include user changes (e.g. form fills)

Returns:

true, if the document was successfully saved