What does the JSON output contain?
It follows the LlamaIndex document schema: one document per page
with that page's text and metadata fields. It's produced by
PyMuPDF's LlamaIndex integration, so it can be loaded directly into
LlamaIndex or any pipeline that accepts per-page text with metadata.
How is this different from PDF to Text or PDF to Markdown?
PDF to Text
gives one plain text stream, and PDF to Markdown keeps headings and
structure for reading. This tool splits the content page by page and
wraps it in structured JSON with metadata, which is what retrieval
pipelines need for chunking and citing sources.
Does it work on scanned PDFs?
Only if they already have a text layer. Scanned images produce empty
or near-empty output, so run them through
OCR PDF
first and then extract.
Can I process a whole batch of PDFs?
Yes. Upload multiple files and you get pdf-for-ai.zip containing one
yourfile_llm.json per PDF; a single file downloads as
yourfile_llm.json directly. If one file in the batch fails, the rest
still complete and the summary tells you how many failed.
Can I choose which pages to extract or control the chunk size?
No. There are no options; every page is extracted with its full text
and metadata. Do chunking in your own pipeline, where you can pick
sizes that fit your embedding model, and drop pages you don't need
there.
Can I prepare a password-protected PDF for AI tools?
Yes. If a file is encrypted, you're prompted for its password before
extraction starts, and the text is pulled from the decrypted copy.
Is my document sent to an AI service?
No. Despite the name, nothing is sent to an AI provider or any
server; the extraction runs with PyMuPDF compiled to WebAssembly
inside your browser. You decide afterward where the JSON goes.
What can I do with the JSON file?
Feed it to a RAG pipeline, build a knowledge base for a chatbot, run
LLM analysis over reports, or turn a PDF collection into training
data. Because the content is split per page with metadata, answers
can point back to the page they came from.