A python package for extracting images from PDF/TIF files
Project description
imgextract
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
from imgextract.imggui import GuiExtractor
if __name__ == "__main__":
ss = GuiExtractor()
ss.openwindow()
Installation
$ pip install imgextract
License
Project details
Release history Release notifications | RSS feed
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 details)
File details
Details for the file imgextract-0.0.2.tar.gz
.
File metadata
- Download URL: imgextract-0.0.2.tar.gz
- Upload date:
- Size: 10.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 784289771ce63402f261dfe6ae87cd9e99db0bc949a7ad93a7583af41ad84240 |
|
MD5 | de2a5d1cb84761950d21a2ff1d47a108 |
|
BLAKE2b-256 | 1c88aa7efd1649d133a76f5e491cfd1142cf312b08b2eed39b72c60c71aa270c |