A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
allows you to generate PDF via JSON
Create a brand new PDF file based on your JSON input file.
Repeatedly add pages to an existing PDF file serving an incremental PDF generation approach.
Append to content of specific pages.
Include page headers, footers
Include boxes, images, text, tables
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 | |
u(nit) | display unit | po(ints),in(ches),cm,mm |
c(onf) | config dir | $path, disable |
upw | user password | |
opw | owner password |
name | description | required |
---|---|---|
inFileJSON | JSON input file | yes |
inFile | PDF input file | no |
outFile | PDF output file | yes |
Please refer to:
pdfcpu help create
and:
pdfcpu/pkg/testdata/json/*
pdfcpu/pkg/samples/create/*