A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
allows you to generate PDF via JSON
Create a new PDF file based on JSON input with optional form definition/data.
Repeatedly add pages to an existing PDF file serving an incremental PDF generation approach.
Append to content of specific pages.
Include page headers and footers.
Include boxes, images, text, tables.
Create a PDF form by including date fields, text fields, checkboxes, radio button groups, comboboxes and listboxes.
Supports Unicode / pdfcpu user fonts (installed Open/TrueType fonts).
Use layout guides and visible crop/content box through out the layout process.
Choose your preferred layout coordinate system.
pdfcpu create inFileJSON [inFile] outFile
| name | description | values
|:————————————————|:—————-|:——-
| v(erbose) | turn on logging |
| vv | verbose logging |
| q(uiet) | quiet mode |
| -o(ffline)| disable http traffic | |
| c(onf) | config dir | $path, disable
| opw | owner password |
| upw | user password |
| u(nit) | display unit | po(ints),in(ches),cm,mm
name | description | required |
---|---|---|
inFileJSON | JSON input file | yes |
inFile | PDF input file | no |
outFile | PDF output file | yes |
$ pdfcpu help create
and
pdfcpu/pkg/testdata/json/*
pdfcpu/pkg/samples/create/*