Open ritikjs opened 1 year ago
const generated = await pdf.create(document, options);
const fileName = "output.pdf";
const params = {
Bucket: process.env.BUCKET_NAME,
Key: fileName,
Body: generated,
};
const data = await s3.upload(params).promise();
This should do the work
Can you show what you have in the document? @SamipanB
i am not able to save pdf o s3 bucket