18 lines
284 B
Markdown
18 lines
284 B
Markdown
|
---
|
||
|
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
|
||
|
```
|