We need to publish the completed to s3, in the callback response, I see the value of the document in
req.body.envelopeDocuments[0].PDFBytes
Can someone help me with how to convert this to file? Tried using
fs.writeFileSync('random.pdf',req.body.envelopeDocuments[0].PDFBytes) and
fs.writeFileSync('random.pdf',Buffer.from(req.body.envelopeDocuments[0].PDFBytes)) and
fs.writeFileSync('random.pdf',Buffer.from(req.body.envelopeDocuments[0].PDFBytes, 'base64'))
all of this seems to generate empty PDF only. how to get the actual completed document?
We need to publish the completed to s3, in the callback response, I see the value of the document in
req.body.envelopeDocuments[0].PDFBytesCan someone help me with how to convert this to file? Tried using
fs.writeFileSync('random.pdf',req.body.envelopeDocuments[0].PDFBytes)andfs.writeFileSync('random.pdf',Buffer.from(req.body.envelopeDocuments[0].PDFBytes))andfs.writeFileSync('random.pdf',Buffer.from(req.body.envelopeDocuments[0].PDFBytes, 'base64'))all of this seems to generate empty PDF only. how to get the actual completed document?