Skip to main content
Type: partition Subtype: unstructured_api

Settings

string
required
Partitioning strategy to use. Must be set to fast.
boolean
If true, includes page breaks in the output where supported by the file type. Default: false.
boolean
Applies only to the hi_res strategy and has no effect here. Default: false.
array
List of Unstructured element types to exclude from the output. Default: none. Allowed values:
  • Address
  • EmailAddress
  • FigureCaption
  • Footer
  • Formula
  • Header
  • Image
  • ListItem
  • NarrativeText
  • PageBreak
  • Table
  • Title
  • UncategorizedText
boolean
If true, retains XML tags in the output. If false, extracts only the text content from XML tags. Default: false.
string
Encoding method used to decode the text input. Default: utf-8.
array
Languages present in the input, for use in partitioning, OCR, or both. Multiple values indicate the text could be in any of the specified languages. Default: ['eng']. See the language codes list.
array
Unstructured element types for which image blocks are extracted as Base64-encoded data and stored in metadata fields. Default: none. Allowed values:
  • Abstract
  • BulletedText
  • Caption
  • CodeSnippet
  • CompositeElement
  • Figure
  • FigureCaption
  • Form
  • FormKeysValues
  • Formula
  • Header
  • Image
  • List
  • List-item
  • ListItem
  • NarrativeText
  • Paragraph
  • Picture
  • Table
  • Text
  • Threading
  • Title
  • UncategorizedText
boolean
If true, any table elements extracted from a PDF include an additional text_as_html metadata field containing an HTML <table> representation. Default: false.
boolean
If true, each element extracted from a PDF includes position information relative to its page. Default: false.