2022-12-15 10:21:39 +00:00
|
|
|
---
|
|
|
|
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
|
2023-05-09 11:17:08 +00:00
|
|
|
pdftoppm -png input.pdf output -r 300
|
2022-12-15 10:21:39 +00:00
|
|
|
```
|