Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 588 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 588 Bytes

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"
})