From e9390aeaaa3d4a6c6af5478bfd7a5fd6b2373087 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 7 May 2022 17:17:27 -0400 Subject: Add --to-json option --- manual/cli.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'manual/cli.rst') diff --git a/manual/cli.rst b/manual/cli.rst index a0c6ba3b..92194e78 100644 --- a/manual/cli.rst +++ b/manual/cli.rst @@ -3174,6 +3174,20 @@ Related Options :qpdf:ref:`--json-help` option to get a description of the JSON object. +.. qpdf:option:: --to-json + + .. help: serialize to JSON + + Shortcut for options useful for serializing PDF to JSON: + --json=latest --json-stream-data=inline + --json-key=qpdf --decode-level=none + + This option is a shorthand for + ``--json=latest --json-stream-data=inline --json-key=qpdf --decode-level=none``. + These are good options for serializing a PDF to JSON in manner that + allows qpdf to read it back in. You can override any of these + options by specifying other options after them. + .. qpdf:option:: --json-help .. help: show format of JSON output -- cgit v1.2.3-54-g00ecf