diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2025-04-10 16:49:33 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2025-04-11 12:17:28 +0200 |
commit | 0ebe7ef4cfc128b01f6eef9f7be65a1e20d03e30 (patch) | |
tree | 3db179f67ec6446ce52b5e40ad786ffcd7d5a9ff | |
parent | b17297d49d3b46786e266f5dcbd60976881d9b3e (diff) |
docs: Add documentation for mutool bake subcommand.
-rw-r--r-- | docs/src/mupdf-command-line.rst | 6 | ||||
-rw-r--r-- | docs/src/mutool-bake.rst | 59 |
2 files changed, 65 insertions, 0 deletions
diff --git a/docs/src/mupdf-command-line.rst b/docs/src/mupdf-command-line.rst index 9e34fc82f..b46b79df1 100644 --- a/docs/src/mupdf-command-line.rst +++ b/docs/src/mupdf-command-line.rst @@ -458,6 +458,12 @@ There are also several tools specifically for working with :title:`PDF` files: .. toctree:: + mutool-bake.rst + + This command changes the colorspace of a :title:`PDF` file. + + .. toctree:: + mutool-run.rst A tool for running :title:`JavaScript` programs with access to the :title:`MuPDF` library functions. diff --git a/docs/src/mutool-bake.rst b/docs/src/mutool-bake.rst new file mode 100644 index 000000000..6c9d0062d --- /dev/null +++ b/docs/src/mutool-bake.rst @@ -0,0 +1,59 @@ +.. Copyright (C) 2025 Artifex Software, Inc. +.. All Rights Reserved. + + +.. default-domain:: js + +.. include:: header.rst + +.. meta:: + :description: MuPDF documentation + :keywords: MuPDF, pdf + + +:title:`mutool bake` +========================================== + + +The `bake` command changes the colorspaces used in +a :title:`PDF` file. + + +.. code-block:: bash + + mutool bake [options] input.pdf [output.pdf] + + +.. include:: optional-command-line-note.rst + + +`[options]` + Options are as follows: + + `-A` + Do not bake annotations into page contents. + + `-F` + Do not bake form fields into page contents. + + `[-O options]` + The `-O` argument is a comma separated list of options for writing the :title:`PDF` file. If none are given `garbage` is used by default. + + .. include:: mutool-comma-separated-list-of-options.rst + +---- + +`input.pdf` + Name of input :title:`PDF` file. + +---- + +`output.pdf` + Optional name of output :title:`PDF` file. If none is given `out.pdf` is used by default. + + +.. include:: footer.rst + + + +.. External links |