Hello.
I am trying to convert to DOC the attached PDF and Aspose.Pdf.Document.Save throws System.IO.EndOfStreamException.
I am using Aspose.PDF 11.2 trial version.
Stream PdfToWordAspose(Stream pdf)
{
//load the PDF
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(pdf);
MemoryStream docStream = new MemoryStream();
Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions();
saveOptions.Format = Aspose.Pdf.DocSaveOptions.DocFormat.Doc;
saveOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow;
saveOptions.RecognizeBullets = true;
pdfDoc.Save(docStream, saveOptions);
docStream.Position = 0;
return docStream;
}
Regards.