Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starkblaze01/pdf-to-image
Simple Python Command Line tool to convert PDF to Image.
https://github.com/starkblaze01/pdf-to-image
hacktoberfest image pdf pdf-converter pdftoimage pil pip-package poppler
Last synced: 3 months ago
JSON representation
Simple Python Command Line tool to convert PDF to Image.
- Host: GitHub
- URL: https://github.com/starkblaze01/pdf-to-image
- Owner: starkblaze01
- License: mit
- Created: 2020-01-21T18:32:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T18:41:10.000Z (almost 5 years ago)
- Last Synced: 2024-09-18T07:24:48.614Z (5 months ago)
- Topics: hacktoberfest, image, pdf, pdf-converter, pdftoimage, pil, pip-package, poppler
- Language: Python
- Homepage: https://pypi.org/project/pdftoimg/
- Size: 17.5 MB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Pdf-To-Image](https://github.com/starkblaze01/Pdf-To-Image)
[![PyPI version](https://badge.fury.io/py/pdftoimg.svg)](https://badge.fury.io/py/pdftoimg) [![Downloads](https://pepy.tech/badge/pdftoimg)](https://pepy.tech/project/pdftoimg)Simple Command Line tool to convert PDF to Image. It is a wrapper of [pdf2image](https://pypi.org/project/pdf2image/).
# How to Install
`pip install pdftoimg`### You need to install poppler if you don't have already.
- For Windows you can install it from [here](https://anaconda.org/conda-forge/poppler/files).
- For MacOS you can install it from [here](http://macappstore.org/poppler/).## How to use
- Open terminal.
- Run `pdftoimg -h` for help.#### Usage:
- `pdftoimg -i -o -f -d -g `#### Example usage:
To convert single PDF to image by specifying absolute path:
- `pdftoimg -i /Users/starkblaze01/Bova/file_name.pdf -o /Users/starkblaze01/output_folder`To convert multiple PDFs in a directory to images in the sample folder:
- `pdftoimg -i /Users/starkblaze01/Bova/input_folder -o /Users/starkblaze01/output_folder`
- **Note:** Using this will convert all the PDFs present in input_folder directory and its sub-directories.
Definitions:
- -i for input pdf_file path
- -o for output_folder path
- -f for image format(Default: jpeg)
- -d for dpi(Default: 200)
- -g for grayscale image(Default: False)## GIF
Click [here](https://github.com/starkblaze01/Pdf-To-Image/blob/master/GIFs) to see GIF of sample usage.![](GIFs/pdftoimg.gif)
![](GIFs/Multiple_PDF.gif)