Skip to main content

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


Developed with ❤️ by Carlos Valdez.

Release files for pdf2image-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf2image-cli 1.0.0
File Size Uploaded
pdf2image-cli-1.0.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf2image-cli 1.0.0
File Interpreter ABI Platform
pdf2image_cli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / pdf2image-cli-1.0.0.tar.gz

Download URL pdf2image-cli-1.0.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
acc64beddee768c3329041a0cd653e9b4a3d4485bdfb0b7ad717e28dc7192ceb
BLAKE2b-256 checksum
How to use checksums
23820012a1903c20577efe87bfbfed32fe0a2b091c6a4d23b3153525d65aec7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / pdf2image_cli-1.0.0-py3-none-any.whl

Download URL pdf2image_cli-1.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e31a0584d97d024a523e7d90a6234c4f298fd2791d4d1a0294e585cc303bdd21
BLAKE2b-256 checksum
How to use checksums
ccdc976f90814e17b0bbb64af3ced86be0a8f13d701dbbdeeb2dfa9329355c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page