EvinceDocument.Document.load_fd
Description: Reference for EvinceDocument.Document.load_fd

### Virtual Method

# EvinceDocument Documentload_fd

#### Declaration [src]

    gboolean
    load_fd (
      EvDocument* document,
      int fd,
      EvDocumentLoadFlags flags,
      GCancellable* cancellable,
      GError** error
    )

#### Description [src]

Synchronously loads the document from `fd`, which must refer to a regular file.

Note that this function takes ownership of `fd`; you must not ever operate on it again. It will be closed automatically if the document is destroyed, or if this function returns `NULL`.

See `ev_document_load()` for more information.

Available since: | 42.0

#### Parameters

`fd` | `int`
| A file descriptor.
`flags` | `EvDocumentLoadFlags`
| Flags from `EvDocumentLoadFlags`.
`cancellable` | `GCancellable`
| A `GCancellable`, or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` if loading succeeded, or `FALSE` on error with `error` filled in.