PDF content as data
PDF is made for people to look at, which makes it awkward for programs to read. PDF to JSON turns a PDF into structured data so that scripts, databases, and search engines can use it: you can index a document archive, count words, find which pages mention a term, check fonts, or feed the text into a data pipeline.
What is in the JSON file
The file contains document metadata (title, author, subject, creator, producer, creation and modification dates, and page count); a list of pages; and overall statistics. For each page you get its number, width, height, and rotation, the full page text, word and character counts, the list of fonts used, and the text split into lines, each with its x and y position on the page. Lines are formed by grouping pieces of text that sit at about the same height.
The document-wide section lists every font used and totals for pages, words, characters, and lines.
Using the output
The positions let you reconstruct reading order, spot headers and footers (lines that repeat at the same y-position on every page), or locate where a value sits on a form. The file is plain UTF-8 JSON that opens in any programming language, a text editor, or tools such as jq. Conversion runs in your browser, so the PDF is not uploaded.
Limits
Only text that is already in the PDF is extracted. A scanned document has no text layer, so run OCR PDF first. Images, drawings, and table structure are not included, and tables come out as lines of text; for tables use PDF to Excel. Very large documents produce large JSON files, so open them with a programmatic tool rather than a text editor.
