Hi,
I am trying to convert a PDF byte array to HTML, but intermittently document.save(FileName, Aspose.Pdf.SaveFormat.Html) is failing with the “Parameter is not valid” exception.
I am using Aspose.Pdf version 17.8.0.0 .
using (var stream = new MemoryStream(pdfByteArray))
{
using (var document = new Aspose.Pdf.Document(stream))
{
document.Save(fileName, Aspose.Pdf.SaveFormat.Html);
}
}