Save ranges from Excel documents as images
Project description
excel2img
Save ranges from Excel documents as images
Requirements
Installation
pip install excel2img
Usage as python module
import excel2img
# Save as PNG the range of used cells in test.xlsx on page named "Sheet1"
excel2img.export_img("test.xlsx", "test.png", "Sheet1", None)
# Save as BMP the range B2:C15 in test.xlsx on page named "Sheet2"
excel2img.export_img("test.xlsx", "test.bmp", "", "Sheet2!B2:C15")
# Save as GIF the range "MyNamedRange"
excel2img.export_img("test.xlsx", "test.gif", "", "MyNamedRange")
Usage from command line
# Save as PNG the range of used cells in test.xlsx on first page
python excel2img.py test.xlsx test.png
# Save as PNG the range of used cells in test.xlsx on page "Sheet2"
python excel2img.py test.xlsx test.png -p Sheet2
# Save as PNG the range "MyNamedRange"
python excel2img.py test.xlsx test.png -r MyNamedRange
# More range syntax examples
python excel2img.py test.xlsx test.gif -r 'Sheet3!B5:C8'
python excel2img.py test.xlsx test.bmp -r 'Sheet4!SheetScopedNamedRange'
License
Apache License 2.0
Credits
Inspired by visio2img
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
excel2img-0.9.zip
(9.2 kB
view details)
File details
Details for the file excel2img-0.9.zip
.
File metadata
- Download URL: excel2img-0.9.zip
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d599e35521b0e5de2f8fbbc99f0692d09e8641d8883ebd3b5b8e76b165610f72 |
|
MD5 | 180aeeae8acaf4342dc3e112968fd631 |
|
BLAKE2b-256 | a627f67201f3fec821fcbaa24f70459ebd3cc2752b35aea5d8ddcd283e850c28 |