Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file-editor-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

file_editor-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file file-editor-1.0.0.tar.gz.

File metadata

  • Download URL: file-editor-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for file-editor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4316da6ab854bfa2aa4a36ccc3bdeeb0c4fdb5a9f5ab5ad8d1aeb3f6f847cdbb
MD5 a35bf9aabd059a2855dd5e22483ac857
BLAKE2b-256 e1507986f33c5efeb4ad7ff536200e0690b670e9039712413b08445ea16ddf90

See more details on using hashes here.

File details

Details for the file file_editor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: file_editor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for file_editor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3d6fc8a2a7a8e4e8154bf2d09c6a980b7d9bf99db679390947963e8b6db1266
MD5 120ee29fe740fc86b31120e329f6f1c6
BLAKE2b-256 e22d3928cd9de7e7a8318ecd1d9a9629913923bcb6be267f8235b87cc2e1dd8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page