This python package can be used for extracting pages from PDF and TIF/TIFF files.
This packages uses poppler for reading pdf files and tkinter for gui, for windows platform poppler has been included in package and tkinter can be installed with python but for linux we have to install them manually.
We can download poppler from poppler
OR
We can install poppler using below command
sudo apt-get install python-poppler
Install tkinter in linux using below command
sudo apt-get update
sudo apt-get install python3-tk
from imgextract.imgext import ImgExtractor
if __name__ == "__main__":
ss = ImgExtractor()
# input files path, out put files path and file type
ss.extract("/home/user/pdf_files", "/home/user/image_files", "pdf")
from imgextract.imgext import ImgExtractor
if __name__ == "__main__":
ss = ImgExtractor()
# input files path, out put files path and file type
ss.extract("/home/user/tif_files", "/home/user/image_files", "tif")
from imgextract.imggui import GuiExtractor
if __name__ == "__main__":
ss = GuiExtractor()
ss.openwindow()
$ pip install imgextract