Differences
This shows you the differences between two versions of the page.
— | tips [2020/06/10 21:38] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== General Tips & Tricks ====== | ||
+ | ===== Extract All Images from a pdf ===== | ||
+ | Install [[http:// | ||
+ | Copy the files to a directory of your choice and add the commands to your PATH. | ||
+ | |||
+ | Open the command line and enter | ||
+ | pdfimages input.pdf output | ||
+ | |||
+ | This will extract ALL images from input.pdf and save them in as PPM files output-001.ppm, | ||
+ | pdfimage -j input.pdf output | ||
+ | and get JPEG images, or use ImageMagick and convert the PPM images to PNG with | ||
+ | mogrify -format png output* | ||
+ | |||
+ | You can guess for yourself what the command | ||
+ | pdftotext input.pdf output.txt | ||
+ | does... | ||
+ | |||
+ | adapted from [[http:// |