pdf2image port to a CLI version
Project description
pdf2image-cli
pdf2image port to a CLI version written in Python.
Designed to make PDF processing easier for those who like working through the terminal. After installing you will have the pdf2image command available to use.
Installation
pip install pdf2image-cli
Windows
For Windows you will need to install poppler for Windows. Here is a repo containing the binaries you will have to add to PATH. @oschwartz10612/poppler-windows
Mac
For MacOS you will need to install poppler for MacOS.
Linux
Most distros have pdftopppm and/or pdftocairo. However if you do not have them installed in your machine please download poppler-utils from your distro's package manager.
How to use it
The program can detect if you've chosen a directory or a file. In case you've chosen a directory, the program will extract images into separate folder for each PDF in it.
To begin, run the following command:
$ pdf2image [path]
The program will create an output folder in your current working directory. If you wish to change the output path run the command with the following flag.
$ pdf2image [path] --output [output_path]
As defualt the program will extract the images in jpeg format. If you wish to change the format to png add the following flag.
$ pdf2image [path] --file_type ["jpeg"|"png"]
Acknowledgements
- Project based on @Belval/pdf2image API. For sponsorships, please visit Github Sponsors.
Developed with ❤️ by Carlos Valdez.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf2image-cli-1.0.0.tar.gz.
File metadata
- Download URL: pdf2image-cli-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc64beddee768c3329041a0cd653e9b4a3d4485bdfb0b7ad717e28dc7192ceb
|
|
| MD5 |
8a61ed5be0b7f4976bbd851574796f04
|
|
| BLAKE2b-256 |
23820012a1903c20577efe87bfbfed32fe0a2b091c6a4d23b3153525d65aec7e
|
File details
Details for the file pdf2image_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pdf2image_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e31a0584d97d024a523e7d90a6234c4f298fd2791d4d1a0294e585cc303bdd21
|
|
| MD5 |
37475a9a9b49fec45b3808586acc0e22
|
|
| BLAKE2b-256 |
ccdc976f90814e17b0bbb64af3ced86be0a8f13d701dbbdeeb2dfa9329355c70
|