Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfcomposer-compose-1.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfcomposer_compose-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pdfcomposer-compose-1.0.1.tar.gz.

File metadata

  • Download URL: pdfcomposer-compose-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for pdfcomposer-compose-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c3dc0a4de8151095d1b1969a50d038a2c00076f5cdabb5fbdb7ffe3c8a06a84
MD5 7d0f1c74d4c2ccaaad8ad852610fb5ae
BLAKE2b-256 32beadc560c16f20dc9ceb1962b9399ac22a415a89af0deffc9782f37e2c42c4

See more details on using hashes here.

File details

Details for the file pdfcomposer_compose-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pdfcomposer_compose-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0554cf8c5db7099e64643b5d55b4557ff8fe85365d711e6572c178b5206a910c
MD5 b404f1be317887590d4f304e9959f115
BLAKE2b-256 0c8c2f0e21fed05dc309b369291b3475e645a8a5dd15003c5dbc3054d507e197

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page