# `DocRaptor.Document`
[🔗](https://github.com/ruskenberry/docraptor/blob/v0.1.2/lib/doc_raptor/document.ex#L1)

Binary document returned by DocRaptor (PDF or spreadsheet bytes).

- `:body` — raw file bytes (write with `File.write!/2`)
- `:content_type` — response `Content-Type` when present
- `:num_pages` — from `X-DocRaptor-Num-Pages` when DocRaptor sends it

# `t`

```elixir
@type t() :: %DocRaptor.Document{
  body: binary(),
  content_type: String.t() | nil,
  num_pages: non_neg_integer() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
