PdfInspector.Pipeline.Result (pdf_inspector_ex v0.1.1)

Copy Markdown View Source

Aggregated result of a PdfInspector.Pipeline run.

All page numbers (classification.pages_needing_ocr, per-page page, ocr_pages) are 0-indexed (upstream convention). See PdfInspector.Pipeline for the markdown field's join semantics.

Summary

Types

strategy()

@type strategy() :: :markdown | :pages | :classify | :skip | :ocr

t()

@type t() :: %PdfInspector.Pipeline.Result{
  classification: PdfInspector.Classification.t(),
  markdown: String.t() | nil,
  ocr_errors: term() | nil,
  ocr_pages: [non_neg_integer()],
  pages: [PdfInspector.PageMarkdown.t()] | nil,
  strategy: strategy()
}