We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document.Convert throws exception if used after Document.Save

Following code always throws Index was outside the bounds of array exception.

//do something to PDF
Document.Save(outputStream, SaveFormat.Pdf);
conversionErrorStream = new MemoryStream();
Document.Convert(conversionErrorStream, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);

Hi Klemen,

Thanks for contacting support.

Once Document.Save(…) method is called, the document handler holding input PDF file is closed and no further manipulation can be performed over the source/input file.