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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdfcomposer-1.0.0.tar.gz.
File metadata
- Download URL: pdfcomposer-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c72670c89a63511cf9db3aa06c39e9aab323b5bf8dea963fb3c509226c8375f8
|
|
| MD5 |
787cfa52db2b641aea4f318b23a19dc9
|
|
| BLAKE2b-256 |
0ef066eed9d4ea0004f12ca4782df7e14e728e7545fb421a6ca7f24293276226
|
File details
Details for the file pdfcomposer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pdfcomposer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0bdac1c87c116226e3803155555840674856fc8c554ca8e08ce0a4d51960db3
|
|
| MD5 |
940688d29a9efc783bfddd0939a7ae19
|
|
| BLAKE2b-256 |
ee93284abceead8a6dceac628074d97cc67cf515c159b1ed2c3f0ced942280d1
|