Last active
February 12, 2022 13:38
-
-
Save NikhilNanjappa/e80674f8d7176fc19bd231b2bd23cabb to your computer and use it in GitHub Desktop.
callGeneratePdf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const docDefinition = { | |
content: ['This will show up in the file created'] | |
}; | |
generatePdf(docDefinition, (response) => { | |
// doc successfully created | |
res.json({ | |
status: 200, | |
data: response | |
}); | |
}, (error) => { | |
// doc creation error | |
res.json({ | |
status: 400, | |
data: error | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment