The endpoint of the API provides several parameters to customize the processing of documents. Below are the details of these parameters:
files
-----
-**Type**: string (binary format)
-**Description**: The file to extract.
-**Required**: true
-**Example**: File to be partitioned. `Example File <https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf>`_
strategy
--------
-**Type**: string
-**Description**: The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. Default: auto.
-**Example**: hi_res
gz_uncompressed_content_type
-----------------------------
-**Type**: string
-**Description**: If file is gzipped, use this content type after unzipping.
-**Example**: application/pdf
output_format
-------------
-**Type**: string
-**Description**: The format of the response. Supported formats are application/json and text/csv. Default: application/json.
-**Example**: application/json
coordinates
-----------
-**Type**: boolean
-**Description**: If true, return coordinates for each element. Default: false.
encoding
--------
-**Type**: string
-**Description**: The encoding method used to decode the text input. Default: utf-8.
-**Description**: Deprecated! Use skip_infer_table_types to opt out of table extraction for any file type. If False and strategy=hi_res, no Table Elements will be extracted from pdf files regardless of skip_infer_table_types contents.
-**Description**: If True, will retain the XML tags in the output. Otherwise it will simply extract the text from within the tags. Only applies to partition_xml.