# pdf-textlayer > Add an invisible, searchable text layer to a PDF from OCR JSON. One Rust core, with a CLI, a Python package, and a Node.js package. ## Docs - [pdf-textlayer](https://pdf-textlayer.vercel.app/): Add an invisible, searchable text layer to a PDF from OCR JSON. One Rust core, shipped as a CLI, a Python package, and a Node.js package. - [Quickstart](https://pdf-textlayer.vercel.app/quickstart): Turn a scanned PDF into a searchable one in three steps — run OCR with LiteParse, install pdf-textlayer, and write the text layer. ## Reference - [CLI](https://pdf-textlayer.vercel.app/reference/cli): The pdf-textlayer command — arguments, options, output, and exit codes. The same Rust command ships in the Python, Node.js, and Rust packages. - [Python](https://pdf-textlayer.vercel.app/reference/python): The pdf_textlayer Python API — make_searchable_pdf, write_textlayer, add_textlayer, load_pages, and the TextBox, ParsedPage, Options, and Stats types. - [Node.js](https://pdf-textlayer.vercel.app/reference/node): The pdf-textlayer Node.js API — makeSearchablePdf, writeTextLayer, addTextLayer, loadPages, their TypeScript types, and error codes. - [Rust](https://pdf-textlayer.vercel.app/reference/rust): The pdf-textlayer crate — write_text_layer, add_text_layer, make_searchable_pdf, adapters, options, errors, and the cli feature. ## Guides - [Mixed documents](https://pdf-textlayer.vercel.app/guides/mixed-pages): How pdf-textlayer decides which pages get a text layer, and how it avoids indexing words a page already contains. - [Adapters and other OCR engines](https://pdf-textlayer.vercel.app/guides/adapters): Read LiteParse JSON with the built-in adapter, or feed boxes from Textract, Azure Document Intelligence, Tesseract, or your own pipeline. - [Coordinates and rotation](https://pdf-textlayer.vercel.app/guides/coordinates): The coordinate system text boxes use, how rotated text and rotated or cropped pages are handled, and how to convert from pixel coordinates. - [Fonts and non-Latin text](https://pdf-textlayer.vercel.app/guides/fonts): How the invisible text is sized, what the font option changes, which characters can be written, and how right-to-left text behaves. - [How the text layer is drawn](https://pdf-textlayer.vercel.app/guides/how-it-works): What pdf-textlayer writes into each page — render mode 3 text, run sizing, one appended content stream, and how existing page state is preserved. ## Project - [Benchmarks](https://pdf-textlayer.vercel.app/project/benchmarks): Timing, memory, file size, and output agreement of the Rust writer against the two earlier PyMuPDF-based versions on eleven synthetic documents. - [Limitations](https://pdf-textlayer.vercel.app/project/limitations): Known limits of pdf-textlayer — rotation, render mode 3, geometric dedup, right-to-left text, memory use, and encrypted files. - [Contributing](https://pdf-textlayer.vercel.app/project/contributing): How the repository is laid out, how to build and test the Rust core and the Python and Node.js packages, and how releases work. ## Agent skills - [pdf-textlayer](https://pdf-textlayer.vercel.app/.well-known/agent-skills/pdf-textlayer/SKILL.md): Read the pdf-textlayer docs instead of answering from memory. Add an invisible, searchable text layer to a PDF from OCR JSON. One Rust core, with a CLI, a Python package, and a Node.js package. Use when a task involves pdf-textlayer: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://pdf-textlayer.vercel.app/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://pdf-textlayer.vercel.app/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://pdf-textlayer.vercel.app/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://pdf-textlayer.vercel.app/openapi.json. - [Agent skills](https://pdf-textlayer.vercel.app/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://pdf-textlayer.vercel.app/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://pdf-textlayer.vercel.app/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://pdf-textlayer.vercel.app/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://pdf-textlayer.vercel.app/sitemap.xml): Every indexable page URL with its last-modified date.