A python package to convert a image/pdf file to pdf/image file format
Project description
File-Editor:
A python package to convert a file to different file format.
Example :
png to pdf
pdf to png
jpeg to pdf
pdf to jpeg
tiff to pdf
pdf to tiff
Note : if input is 2 page pdf document and output specified as .png format. it will split the pdf document into two png files.
Required Packages:
Python-pil and pdf2image
>>> sudo apt-get install python-pil >>> pip install pdf2image
Usage:
Following commands will convert the input file to output file format.
First argument : Input file path
Second argument : Output file format
>>> from file_editor.editor import image >>> image("example.png",".pdf")
Supported File Fromats
BMP, PDF, EPS, GIF, ICNS, ICO, IM, JPEG, JPEG 2000, MSP, PCX, PNG, PPM, SGI, SPIDER, TIFF, WebP and XBM
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
Hashes for file_editor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d6fc8a2a7a8e4e8154bf2d09c6a980b7d9bf99db679390947963e8b6db1266 |
|
MD5 | 120ee29fe740fc86b31120e329f6f1c6 |
|
BLAKE2b-256 | e22d3928cd9de7e7a8318ecd1d9a9629913923bcb6be267f8235b87cc2e1dd8c |