Closed Dennis-96 closed 2 years ago
Could this be because of the pdfkit version used? The helper is written for 0.10. There is this PR that is for 0.11
Could this be because of the pdfkit version used? The helper is written for 0.10. There is this PR that is for 0.11
Thank you very much for the help @vbuch , now I am going to test it, I have one more question, was it possible to solve the problem so that the signature is visibly displayed in the pdf? , since I tried solutions with pdf-lib and failed to make this happen
This issue has been automatically marked as stale because it has not had activity in the past 90 days. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug and the expected behaviour When I try to create a pdf I get the acroform error.
Is it a bug in signing or in the helpers? Helpers
To Reproduce const createPdf = params => new Promise((resolve) => { const requestParams = { placeholder: {}, text: 'node-signpdf', addSignaturePlaceholder: true, pages: 1, ...params, };
ERROR UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fonts' of undefined at PDFDocument.endAcroForm (node_modules\pdfkit\lib\mixins\acroform.js:78:37) at PDFDocument.end (node_modules\pdfkit\lib\document.js:311:10)
Thanks in advance for your help