# Extract text from PDF > Supported in: Batch, Faster Extracts raw text from the pages in a PDF with configurable output formats. **Expression categories:** Media ## Declared arguments * **Media reference:** The column containing media references to PDF files in a media set.
*Expression\* * *optional* **End page:** The end of the page range (inclusive). If no value is provided, it will default to the last page.
*Expression\* * *optional* **Error handling:** Determines the behavior of the pipeline for inputs that fail to process.
*Enum\* * *optional* **Output format:** The format of the extracted text output.
*Enum\* * *optional* **Start page:** The start of the page range. If no value is provided, it will default to the first page.
*Expression\* **Output type:** *Array\* ## Examples ### Example 1: Base case **Argument values:** * **Media reference:** `Media Reference` * **End page:** `End Page` * **Error handling:** `FAIL_FAST` * **Output format:** `TEXT` * **Start page:** `Start Page` | Media Reference | Start Page | End Page | **Output** | | ----- | ----- | ----- | ----- | | {"mimeType":"application/pdf","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.test.media-set.1","mediaItemRid":"ri.mio.test.media-item.1"}}} | 1 | 2 | \[ first page, second page ] | ***