Closed dfharmon closed 4 years ago
This adds Sync methods for reading and writing using a stream buffer as the source. The first param for each is the stream buffer which can be accessed via rs.readFileSync()
rs.readFileSync()
await PdfFillForm.readBuffer(fs.readFileSync('test.pdf'));
await PdfFillForm.writeBuffer(fs.readFileSync('test.pdf'), { "myField": "myField fill value" }, { "save": "pdf", 'cores': 4, 'scale': 0.2, 'antialias': true } );
Thank you for your contribution!
This adds Sync methods for reading and writing using a stream buffer as the source. The first param for each is the stream buffer which can be accessed via
rs.readFileSync()