pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Create

allows you to generate PDF via JSON


Usage

pdfcpu create inFileJSON [ inFile ] outFile [flags]

Common Flags


Arguments

namedescriptionrequired
inFileJSONJSON input fileyes
inFilePDF input file, use - to read from stdinno
outFilePDF output file, use - to write to stdoutyes

Further Reference

$ pdfcpu create --help

and

pdfcpu/pkg/testdata/json/*
pdfcpu/pkg/samples/create/*

Create a PDF and write it to stdout:

$ pdfcpu create invoice.json - \
   | aws s3 cp - s3://acme-billing/invoice.pdf

Overlay generated content onto a streamed input PDF:

$ aws s3 cp s3://acme-forms/template.pdf - \
   | pdfcpu create overlay.json - - \
   | aws s3 cp - s3://acme-forms/template-filled.pdf