Skip to main content
View plugin source · Plugin ID · Plugin API PDF text reads pages between file upload and search.
PDF text extracts selectable text from PDF pages so you can search for words on them.PDF text extracts selectable text from PDF pages so you can search for words on them.

What it does

A format plugin turns a file into searchable parts. PDF text reads selectable text from PDF pages, so you can find a report by words inside it.

Before you start

Open the PDF and try to select and copy a line. For image-only scans, run optical character recognition (OCR) to add a text layer before uploading.

Enable it

Single Machine and the standard make dev stack include the PDF route. On Railway, set QUIVR_DEMO_PLUGINS=1 to enable the optional packaged plugins, including PDF text. For other deployments, pin the plugin with a required route for application/pdf.

Use it

Find a phrase on a PDF page

  1. Follow Upload a file. Set media_type to application/pdf in both the upload and the document submission.
  2. When the receipt for your submission reports availability.searchable: true, use keyword search (mode: lexical) to look for a distinctive line from the PDF. For the sample PDF, search for “heliotrope aurora”.
  3. Check that the sample’s search result has part_key: page-2. The number is the original page number.

Settings

When you omit these settings, the plugin uses max_page_parts: 64, max_text_bytes: 131072 and include_source: true. You can keep 1–64 page parts and 1,024–262,144 bytes of UTF-8 text across the PDF.

What it produces

The plugin keeps one searchable text part per page with extractable text, up to the configured cap. Pages beyond that cap join the last part. By default, it also adds a reference to the original PDF.

Limits and troubleshooting

  • Blank or scanned pages are skipped with an empty_pages warning. If no text can be extracted from an otherwise readable PDF, Quivr keeps only the source reference with a no_text warning. With include_source: false, the same file fails.
  • A damaged page is skipped with an unreadable_pages warning. If every page is unreadable, the plugin refuses the PDF with corrupt_pdf.
  • Later text is dropped when the byte cap is reached. If the result points to the last retained part, that part may contain text from several pages.
  • If Quivr refuses a damaged or password-protected PDF, upload a corrected PDF as a new version of the same document. Use Reprocess quarantined versions to retry the original file after a plugin-side fix.
NewsML-G2 reads news XML. Image metadata reads captions already embedded in photos.