Add note about pdf-to-image conversion
This commit is contained in:
parent
f1af2169af
commit
2cd21b361c
1 changed files with 18 additions and 0 deletions
18
notebook/Linux/Tools/pdf to image.md
Normal file
18
notebook/Linux/Tools/pdf to image.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
tags: pdf
|
||||||
|
---
|
||||||
|
## `pdfimages`
|
||||||
|
|
||||||
|
To extract individual original images from a PDF document:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pdfimages -png input.pdf prefix
|
||||||
|
```
|
||||||
|
|
||||||
|
## `pdftoppm`
|
||||||
|
|
||||||
|
To convert the actual document to images (so kinda like taking screenshots, but better)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pdf2ppm -png input.pdf output.png
|
||||||
|
```
|
Loading…
Reference in a new issue