mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 23:49:44 +00:00
Update cheatsheets
This commit is contained in:
33
mutool
Normal file
33
mutool
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mutool
|
||||
|
||||
> Convert, query information and extract data from PDF files.
|
||||
> More information: <https://mupdf.readthedocs.io/en/latest/mupdf-command-line.html>.
|
||||
|
||||
- Convert a range of pages to 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}}`
|
||||
|
||||
- Convert one or more pages of a PDF into text in `stdout`:
|
||||
|
||||
`mutool draw -F txt {{path/to/input.pdf}} {{2,3,5,...}}`
|
||||
|
||||
- Concatenate multiple PDF files:
|
||||
|
||||
`mutool merge -o {{path/to/output.pdf}} {{path/to/input1.pdf path/to/input2.pdf ...}}`
|
||||
|
||||
- Query information about all content embedded in a PDF:
|
||||
|
||||
`mutool info {{path/to/input.pdf}}`
|
||||
|
||||
- Extract all images, fonts and resources embedded in a PDF to the current directory:
|
||||
|
||||
`mutool extract {{path/to/input.pdf}}`
|
||||
|
||||
- Show the outline (table of contents) of a PDF:
|
||||
|
||||
`mutool show {{path/to/input.pdf}} outline`
|
||||
Reference in New Issue
Block a user