Composes one PDF from the given pdf files, in the given sequence.
Project description
Gumshoe PDF Composer
Composes one PDF from the given pdf files, in the given sequence, then writes it to the given outfile.
Installation
To install, run pip install pdfcomposer
Examples
Call the default from the command line
pdfcomposer --outputer index
# index outputers
# ('compose', 'index')
Call a plugin (compose) from the command line
pdfcomposer --outputer compose \
--args 'outfile.pdf' 'infile1.pdf' 'infile2.pdf'\
--kwargs title="My PDF" author="John Doe" subject="My first PDF" creator="John Doe"
# composes a PDF with the content of infile1.pdf then infile2.pdf
# sets the PDF info with the given kwargs
# writes the PDF to ./outfile.pdf
From a script
from pdfcomposer import Api
composer = Api()
# index
args = []
kws = dict(path='index')
result = composer(*args, **kws)
print(result)
# compose
args = ['./outfile.pdf', './infile1.pdf', './infile2.pdf']
kws = dict(path='compose',
title="My PDF",
author="John Doe",
subject="My first PDF",
creator="John Doe")
result = composer(*args, **kws)
print(result)
# composes a PDF with the content of infile1.pdf then infile2.pdf
# sets the PDF info with the given kwargs
# writes the PDF to ./outfile.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 Distribution
pdfcomposer-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pdfcomposer-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bdac1c87c116226e3803155555840674856fc8c554ca8e08ce0a4d51960db3 |
|
MD5 | 940688d29a9efc783bfddd0939a7ae19 |
|
BLAKE2b-256 | ee93284abceead8a6dceac628074d97cc67cf515c159b1ed2c3f0ced942280d1 |