Skip to main content

A python package for extracting images from PDF/TIF files

Project description

imgextract

imgextract v0.0.2

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.

How to install poppler and tkinter

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


How to use

pdf page extraction

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")

tif/tiff image extraction

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")

GUI for Image extraction

GUI for Image extraction

from imgextract.imggui import GuiExtractor

if __name__ == "__main__":
    ss = GuiExtractor()
    ss.openwindow()

Installation

$ pip install imgextract

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgextract-0.0.2.tar.gz (10.9 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page