> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eigenpal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed PDF Text

> Embed OCR text layer into scanned PDFs/images to make them searchable

`transform.pdf-embed`, Embed OCR text layer into scanned PDFs/images to make them searchable

## Configuration

Configuration goes inside the step's `with:` block.

<ParamField path="input" type="string" required>
  File input - template expression e.g. \{\{input.document}}
</ParamField>

<ParamField path="parseResult" type="string" required>
  Parse result - template expression e.g. \{\{steps.parse.output}}
</ParamField>

<ParamField path="outputFilename" type="string">
  Output filename - supports \{\{filename}} syntax
</ParamField>

<ParamField path="confidenceThreshold" type="number" default="0.7">
  Minimum OCR confidence (0-1) to include a word
</ParamField>

## Output

<ResponseField path="fileId" type="string" required>
  File ID from files table
</ResponseField>

<ResponseField path="pageCount" type="number" required>
  Number of pages in the output PDF
</ResponseField>

<ResponseField path="wordCount" type="number" required>
  Number of words embedded
</ResponseField>

<ResponseField path="text" type="string" required>
  Extracted text from the document
</ResponseField>
