Closed hmtri1011 closed 7 years ago
I'll update the README with proper documentation. mapForm2PDF
has been changed and no longer requires a callback.
This should be the format:
const mapTest = {
"name": "First Name"
}
const userObject = [
{
"title" : "name",
"fieldfieldType": "Text",
"fieldValue": "MTae"
}
];
const mappedFields = pdfFiller.mapForm2PDF(userObject, mapTest);
Which will result in:
{
"First Name": "MTae"
}
Hello johntayl. At FillForm method, can I have a stream of filled pdf file?
I means in this method :
pdfFiller.fillForm('http://res.cloudinary.com/xxx/form.pdf',destPDF, data, (err) => {
if (err) throw err;
console.log("In callback (we're done).");
});
Can i handle the filled pdf form
My code :
And the output is nothing!