Save pictures to PDF
Project description
Save pictures to PDF either from a command line, or in your Python programs.
As a command line tool
Usage:
$ python -m pictureshow -h
usage: pictureshow [-h] -i PICTURE -o PDF
optional arguments:
-h, --help show this help message and exit
-i PICTURE, --input PICTURE, --picture PICTURE
input file path
-o PDF, --output PDF, --pdf PDF
output file path
Example:
$ python -m pictureshow --picture picture.png --pdf output_file.pdf
Saved to file: /.../output_file.pdf
$ python -m pictureshow -i picture.png -o output_file.pdf
Saved to file: /.../output_file.pdf
As a Python library
Using the PictureShow class:
from pictureshow import PictureShow
ps = PictureShow('picture.jpg')
ps.picture_to_pdf('output_file.pdf')
Using the picture_to_pdf shortcut function:
from pictureshow import picture_to_pdf
picture_to_pdf('picture.png', 'output_file.pdf')
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pictureshow-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ca942e442f748e5c5f912e66333f953f0606eec86e4539715ea9c614ab009a1 |
|
MD5 | 8ab500a3a580c5bd88c2dec01c8cecf9 |
|
BLAKE2b-256 | a0f21f306bbdb2c4ea2170f76f645ed213636341f36c646a867b6b42a7e5790e |