-
Install requirements:
pip install -r requirements
orpip install pdf2image pillow tqdm
-
Options:
-
-f
,--file
: Input PDF file -
-d
,--dir
: Output directory
python3 main.py -f input.pdf -d output/
To know the DPI
and image colors
, we can use this options: -f
, the first image is set to zero and the -l
set to the last image.
pdfimages -list ./foo.pdf -f 0 -l 13