Skip to content

How to generate document from PDFBytes received in call back? #255

Description

@krrajiv

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions