2018-08-28 15:28:41 +01:00
|
|
|
# mutool
|
|
|
|
|
|
|
|
> Convert PDF files, query information and extract data.
|
2019-06-04 10:25:22 +01:00
|
|
|
> More information: <https://mupdf.com/docs>.
|
2018-08-28 15:28:41 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Convert pages 1-10 into 10 PNGs:
|
2018-08-28 15:28:41 +01:00
|
|
|
|
|
|
|
`mutool convert -o {{image%d.png}} {{file.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}}`
|
|
|
|
|
|
|
|
- Concatenate two PDFs:
|
|
|
|
|
|
|
|
`mutool merge -o {{output.pdf}} {{input1.pdf}} {{input2.pdf}}`
|
|
|
|
|
|
|
|
- Query information about all content embedded in a PDF:
|
|
|
|
|
|
|
|
`mutool info {{input.pdf}}`
|
|
|
|
|
|
|
|
- Extract all images, fonts and resources embedded in a PDF out into the current directory:
|
|
|
|
|
|
|
|
`mutool extract {{input.pdf}}`
|
2021-02-21 21:12:32 +00:00
|
|
|
|
|
|
|
- Print the outline (table of contents) of a PDF:
|
|
|
|
|
|
|
|
`mutool show {{input.pdf}} outline`
|