Forrest logo
tool overview
On this page you find all important commands for the CLI tool mutool. If the command you are looking for is missing please ask our AI.

mutool

MuTool is a powerful command line tool used for manipulating and converting PDF files. It provides a wide range of features and functionalities for working with PDF documents efficiently.

  1. MuTool allows you to extract specific pages or ranges of pages from a PDF file, making it easy to split and separate content.

  2. It supports combining multiple PDF files into a single document, assisting in merging different files seamlessly.

  3. The tool enables you to resize PDF pages, both individually and in bulk, facilitating the adjustment of document dimensions.

  4. MuTool provides options to rotate pages in a PDF file, allowing you to reorient pages as needed.

  5. You can add watermarks to PDF documents using this tool, either as simple text or as an image overlay, making it useful for branding or ownership identification.

  6. It enables you to encrypt PDF files with passwords for enhanced security and protection of sensitive information.

  7. MuTool supports converting PDF files to various formats such as SVG, HTML, TXT, JPEG, and more, enabling easy extraction of content.

  8. The tool can also convert other file formats like images, text, and HTML into PDF files, providing flexibility in document creation.

  9. It allows you to extract text from PDF documents, making it useful for text analysis or content extraction purposes.

  10. MuTool is a cross-platform command line tool available for Windows, macOS, and Linux operating systems, facilitating its usage on a wide range of systems.

List of commands for mutool:

  • mutool:tldr:1b291 mutool: Query information about all content embedded in a PDF.
    $ mutool info ${path-to-input-pdf}
    try on your machine
    explain this command
  • mutool:tldr:28cc9 mutool: Concatenate multiple PDF files.
    $ mutool merge -o ${path-to-output-pdf} ${path-to-input1-pdf path-to-input2-pdf ---}
    try on your machine
    explain this command
  • mutool:tldr:37946 mutool: Print the outline (table of contents) of a PDF.
    $ mutool show ${path-to-input-pdf} outline
    try on your machine
    explain this command
  • mutool:tldr:58534 mutool: Extract all images, fonts and resources embedded in a PDF out into the current directory.
    $ mutool extract ${path-to-input-pdf}
    try on your machine
    explain this command
  • mutool:tldr:c8481 mutool: Convert pages 2, 3 and 5 of a PDF into text in the standard output.
    $ mutool draw -F ${txt} ${path-to-input-pdf} ${2,3,5}
    try on your machine
    explain this command
  • mutool:tldr:ef941 mutool: Convert pages 1-10 into 10 PNGs (Note: `%nd` in the output placeholder must be replaced with a print modifier like `%d` or `%2d`).
    $ mutool convert -o ${path-to-output%nd-png} ${path-to-input-pdf} ${1-10}
    try on your machine
    explain this command
tool overview