question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

D:\Projects\pdf-digital-signature\node_modules\node-signpdf\dist\signpdf.js:67 throw new _SignPdfError2.default(Could not find ByteRange placeholder: ${byteRangeString}, _SignPdfError2.default.TYPE_PARSE); ^

Error: Could not find ByteRange placeholder: /ByteRange [0 /********** /********** /**********] at SignPdf.sign (D:\Projects\pdf-digital-signature\node_modules\node-signpdf\dist\signpdf.js:67:19)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
dipedrocommented, May 2, 2020

you forgot to put this: var signer = require(“node-signpdf”).default;

2reactions
angeltg83commented, Jun 28, 2019

var signer = require(“node-signpdf”); console.log('signer uu ‘, signer); var PATH_TO_PDF_FILE = “prueba.pdf”; var PATH_TO_P12_CERTIFICATE = “token.p12”; let pdfBufer = fs.readFileSync(PATH_TO_PDF_FILE); let p12 = fs.readFileSync(PATH_TO_P12_CERTIFICATE); console.log(’\n\npdfBufer ‘, pdfBufer); console.log(’\np12 ', p12); const signedPdf = signer.sign( pdfBufer, p12 // fs.readFileSync(PATH_TO_PDF_FILE), // fs.readFileSync(PATH_TO_P12_CERTIFICATE), );

and call the function, : error: Sending 500 (“Server Error”) response: TypeError: signer.sign is not a function

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble (rapper) - Wikipedia
Mariel Semonte Orr (November 4, 1987 – June 5, 2022), known professionally as Trouble, was an American rapper. Trouble. Birth name, Mariel Semonte...
Read more >
Trouble Definition & Meaning - Merriam-Webster
1 · the quality or state of being troubled especially mentally ; 2 · public unrest or disturbance. there's trouble brewing downtown ;...
Read more >
Coldplay - Trouble (Official video) - YouTube
Coldplay - Trouble is taken from the debut album Parachutes released in 2000 (hear the album at https://smarturl.it/cp-pararchutes) Newly ...
Read more >
Taylor Swift - I Knew You Were Trouble - YouTube
Music video by Taylor Swift performing I Knew You Were Trouble. © 2012 Big Machine Records, LLC ▻Exclusive Merch: ...
Read more >
P!NK - Trouble (Video) - YouTube
P!nk's official music video for ' Trouble '. Click to listen to P!nk on Spotify: http://smarturl.it/PSpot?IQid=PinkTrAs featured on Greatest ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found