Hi!
We are having problems exporting the JPG of this document. The first page render correctly, but when trying to extract the second page, an exception rises. The stack information isn’t very useful. Any help would be appreciated.
Aspose Words is Version 9.6.0.0
The problem document is attached. And the code snippet goues as follows:
Document doc = new Document(mStream);
// doc.UpdatePageLayout();
previewPage.TotalPages = doc.PageCount;
using(MemoryStream thumbnail = new MemoryStream())
{
ImageSaveOptions imageOptions = new ImageSaveOptions(SaveFormat.Jpeg);
imageOptions.PageIndex = pageNumber - 1;
imageOptions.PageCount = 1;
doc.Save(thumbnail, imageOptions); <--Exception occurs here.
previewPage.PageNumber = pageNumber;
previewPage.StoredFile = thumbnail.ToArray();
}