https://github.com/scionoftech/imgextract
This python package can be used for extracting pages from PDF and TIF/TIFF files.
https://github.com/scionoftech/imgextract
Last synced: 2 months ago
JSON representation
This python package can be used for extracting pages from PDF and TIF/TIFF files.
- Host: GitHub
- URL: https://github.com/scionoftech/imgextract
- Owner: scionoftech
- License: mit
- Created: 2019-06-05T12:13:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T05:46:46.000Z (over 6 years ago)
- Last Synced: 2025-01-29T00:48:19.355Z (12 months ago)
- Language: Roff
- Size: 9.97 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgextract
[imgextract v0.0.2](https://pypi.org/project/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](https://poppler.freedesktop.org/)
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
```python
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
```python
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
[](https://pypi.org/project/imgextract/)
```python
from imgextract.imggui import GuiExtractor
if __name__ == "__main__":
ss = GuiExtractor()
ss.openwindow()
```
### Installation
```shell
$ pip install imgextract
```
### License
[MIT](LICENSE)