Skip to content

won21kr/pdfedit

Repository files navigation

PDFEdit

NodeJS PDF editing

This is a WIP library to edit existing PDFs.

See app.js for some usage examples.

Note: PDF version MUST be 1.4 or lower. Anything above 1.5 will NOT work.

Install with npm install ags131/pdfedit

Usage: (Sorry, this is all the docs at the moment)

var PDF = require('pdfedit').PDF
var pdf = new PDF()
pdf.load('formTest.pdf')

var str = fs.openWriteStream('formTest_output.pdf')
pdf.pipe(str)

pdf.fillForm({
	"Address 1 Text Box": "Address 1 New Value",
	"Country Combo Box": "Country New Value",
	"Driving License Check Box":"/Yes"
})

About

PDF Editor for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published