Hi: We are trying to create PDF from bytes using Aspose.pdf in AWS Labmbda .Net and gettting error on “at Aspose.Pdf.Document.Save(Stream outputStream, SaveFormat format)”.
code
MemoryStream pdfStream = new MemoryStream( pdfBytes );
Document pdfDoc = new Document( pdfStream );
MemoryStream outStream = new MemoryStream();
// Save the document
pdfDoc.Save(outStream, SaveFormat.Pdf);
Please help to fix this issue.