From 2cd21b361c6e6b50a7320671df8710e9528285ea Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 15 Dec 2022 11:21:39 +0100 Subject: [PATCH] Add note about pdf-to-image conversion --- notebook/Linux/Tools/pdf to image.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 notebook/Linux/Tools/pdf to image.md diff --git a/notebook/Linux/Tools/pdf to image.md b/notebook/Linux/Tools/pdf to image.md new file mode 100644 index 0000000..09d96c2 --- /dev/null +++ b/notebook/Linux/Tools/pdf to image.md @@ -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 +``` \ No newline at end of file