Composes one PDF from the given pdf files, in the given sequence.
Project description
Compose - Gumshoe PDF Composer Plugin
Composes one PDF from the given pdf files, in the given sequence, then writes it to the given outfile path.
Installation
To install, run pip install pdfcomposer-compose
(OR pip install "pdfcomposer-compose"
)
Examples
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_compose import main
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 = main(*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
Built Distribution
Close
Hashes for pdfcomposer-compose-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3dc0a4de8151095d1b1969a50d038a2c00076f5cdabb5fbdb7ffe3c8a06a84 |
|
MD5 | 7d0f1c74d4c2ccaaad8ad852610fb5ae |
|
BLAKE2b-256 | 32beadc560c16f20dc9ceb1962b9399ac22a415a89af0deffc9782f37e2c42c4 |
Close
Hashes for pdfcomposer_compose-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0554cf8c5db7099e64643b5d55b4557ff8fe85365d711e6572c178b5206a910c |
|
MD5 | b404f1be317887590d4f304e9959f115 |
|
BLAKE2b-256 | 0c8c2f0e21fed05dc309b369291b3475e645a8a5dd15003c5dbc3054d507e197 |