mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 13:53:43 +02:00
mutool: update page (#10223)
* mutool: update page * Apply suggestions from code review * Update mutool.md
This commit is contained in:
parent
44576cb8a2
commit
1c7baa2cb1
1 changed files with 9 additions and 9 deletions
|
@ -1,28 +1,28 @@
|
|||
# mutool
|
||||
|
||||
> Convert PDF files, query information and extract data.
|
||||
> More information: <https://mupdf.com/docs>.
|
||||
> More information: <https://mupdf.readthedocs.io/en/latest/mupdf-command-line.html>.
|
||||
|
||||
- Convert pages 1-10 into 10 PNGs:
|
||||
- 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 {{image%d.png}} {{file.pdf}} {{1-10}}`
|
||||
`mutool convert -o {{path/to/output%nd.png}} {{path/to/input.pdf}} {{1-10}}`
|
||||
|
||||
- Convert pages 2, 3 and 5 of a PDF into text in the standard output:
|
||||
|
||||
`mutool draw -F {{txt}} {{file.pdf}} {{2,3,5}}`
|
||||
`mutool draw -F {{txt}} {{path/to/input.pdf}} {{2,3,5}}`
|
||||
|
||||
- Concatenate two PDFs:
|
||||
- Concatenate multiple PDF files:
|
||||
|
||||
`mutool merge -o {{output.pdf}} {{input1.pdf}} {{input2.pdf}}`
|
||||
`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 {{input.pdf}}`
|
||||
`mutool info {{path/to/input.pdf}}`
|
||||
|
||||
- Extract all images, fonts and resources embedded in a PDF out into the current directory:
|
||||
|
||||
`mutool extract {{input.pdf}}`
|
||||
`mutool extract {{path/to/input.pdf}}`
|
||||
|
||||
- Print the outline (table of contents) of a PDF:
|
||||
|
||||
`mutool show {{input.pdf}} outline`
|
||||
`mutool show {{path/to/input.pdf}} outline`
|
||||
|
|
Loading…
Add table
Reference in a new issue