{"schemaVersion":"1.0","record":{"label":"qpdf","description":"Command-line tool and C++ library for PDF structure transformations and inspection.","aliases":[],"kind":"software","website":"https://qpdf.sourceforge.io/","overview":"qpdf is a command-line program and C++ library for transforming the structure of PDF files. It supports tasks such as page assembly, encryption changes and web-oriented file organization, while leaving document content generation to the caller. It is useful in document-processing pipelines rather than as an interactive PDF reader or a page-rendering engine.","license":"Apache-2.0","lifecycle":"active","example":false,"features":[{"name":"Structural checks","status":"limited","detail":"A successful --check indicates syntactic validity, not complete content correctness.","useCase":"Automated PDF structure transformation","platforms":["Linux","Other supported native builds"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://qpdf.readthedocs.io/en/stable/cli.html","locator":"Page selection limitations, --check and linearization","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]},{"name":"JSON round-trip","status":"limited","detail":"Complete representation requires stream data; JSON is not extracted document text.","useCase":"Automated PDF structure transformation","platforms":["Linux","Other supported native builds"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://qpdf.readthedocs.io/en/stable/json.html","locator":"Object representation, stream inclusion and semantic limits","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]},{"name":"Page rendering","status":"unsupported","detail":"The project explicitly excludes viewer and format-conversion roles.","useCase":"Automated PDF structure transformation","platforms":["Linux","Other supported native builds"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural transformation library and explicit non-rendering scope","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]}],"alternatives":[],"slug":"qpdf","draftAlternatives":[{"targetSlug":"mupdf","status":"limited","detail":"Can cover structural PDF transformations, but not MuPDF's rendering or document-to-image tasks.","useCase":"Automated PDF structure transformation","platforms":["Linux","Other supported native builds"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural transformation library and explicit non-rendering scope","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html","locator":"Rendering and structural command-line tools","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]}],"evidence":[{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural transformation library and explicit non-rendering scope","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/cli.html","locator":"Page selection limitations, --check and linearization","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural transformation library and explicit non-rendering scope","retrievedAt":"2026-10-07T12:29:31.703Z","id":"overview","title":"What is qpdf?","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/license.html","locator":"Apache License Version 2.0","retrievedAt":"2026-10-07T12:29:31.703Z","id":"license","title":"qpdf license","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/cli.html","locator":"Page selection limitations, --check and linearization","retrievedAt":"2026-10-07T12:29:31.703Z","id":"cli","title":"Running qpdf","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/json.html","locator":"Object representation, stream inclusion and semantic limits","retrievedAt":"2026-10-07T12:29:31.703Z","id":"json","title":"qpdf JSON","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/download.html","locator":"Distribution packages and releases","retrievedAt":"2026-10-07T12:29:31.703Z","id":"download","title":"Downloading qpdf","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html","locator":"Rendering and structural command-line tools","retrievedAt":"2026-10-07T12:29:31.703Z","id":"mupdf","title":"MuPDF tools","kind":"vendor"}],"overviewCitations":["overview","cli"],"licenseCitations":["license"],"sections":[{"id":"workflow","heading":"Structural processing","paragraphs":[{"id":"workflow-detail","content":[{"text":"The library can copy objects between documents and construct a new PDF's structural representation. The caller still supplies page content. This division suits a pipeline that already has valid PDF inputs and needs to assemble or reorganize them; it is not a layout system for producing an invoice or report from ordinary business data."}],"citations":["overview"]}]},{"id":"assembly","heading":"Page assembly and checks","paragraphs":[{"id":"assembly-detail","content":[{"text":"Page selection can combine source files, but document-level features need care. Forms and outlines are inherited from the primary input rather than fully reconciled across every selected page; bookmarks to omitted pages can break. Likewise, a successful structural check does not prove every content stream is correct. These boundaries matter when a job appears to finish successfully but its interactive navigation still needs inspection."}],"citations":["cli"]}]},{"id":"json","heading":"JSON as a PDF representation","paragraphs":[{"id":"json-detail","content":[{"text":"qpdf JSON exposes PDF objects in a form that general-purpose programs can manipulate. Including stream data is necessary for a complete representation suitable for reconstructing the document. This is low-level PDF information expressed with JSON syntax, not a semantic reading of paragraphs or tables. It does not provide text extraction or recover document structure that the original file never contained."}],"citations":["json"]}]},{"id":"deployment","heading":"Deployment and licensing","paragraphs":[{"id":"deployment-detail","content":[{"text":"qpdf is distributed under Apache-2.0. Its download guidance points to Linux distribution packages, native packages for other systems and project releases. Applications can integrate the C++ library, while script-driven environments can use the command-line program. Those interfaces provide different integration choices; adopting the executable does not make an existing library call compatible without adapting the surrounding program."}],"citations":["license","download","overview"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"qpdf can substitute for "},{"text":"MuPDF","targetSlug":"mupdf"},{"text":" for selected structural PDF-processing tasks. MuPDF also includes rendering and conversion tools, which fall outside qpdf's stated scope. A useful comparison therefore starts with the required output: another reorganized PDF is a different task from a raster preview, an extracted text file or an interactive viewer. Linearization is another distinct requirement that should be checked explicitly."}],"citations":["overview","mupdf","cli"]}]}]},"id":"Q547","revision":594,"updatedAt":"2026-10-12T22:24:13Z","sourceUrl":"https://substitutefor.net/entities/Q547?revision=594"}}