Issue with Aspose API Memory Stream Conversion for Large PDF Files

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();
}

@ManikandanVenkatesan Could you please provide the problematic input document here for testing? Unfortunately, without the problematic document it is difficult to say what causes the problem.