DocRaptor.Document (DocRaptor v0.1.2)

Copy Markdown View Source

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

Summary

Types

t()

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