Hi Team,
We have experienced an issue with the memory stream when converting PDFs using the Aspose API for larger files. The process is taking a long time and we are receiving the following error message:
Error: Specified argument was out of the range of valid values.\r\nParameter name: documentPageCount
FileContent: byte - 13982971
Code:
using (MemoryStream ms = new MemoryStream(FileContent))
using (MemoryStream convertedstring = new MemoryStream())
{
var doc = new Aspose.Words.Document(ms);
doc.Save(convertedstring, Aspose.Words.SaveFormat.Pdf);
FileContent = convertedstring.ToArray();
}