Using Spire.DOC to convert DOC to PDF workds great!
But I get the following error message when I try to convert from PDF to DOC:
An unhandled exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll
Additional information: Unable to read beyond the end of the stream.
Here is my code:
- Code: Select all
void Doc2Pdf(String inputFilePath, String outputFilePath)
{
var document = new Document();
document.LoadFromFile(inputFilePath);
document.SaveToFile(outputFilePath, Spire.Doc.FileFormat.PDF);
}
void Pdf2Doc(String inputFilePath, String outputFilePath)
{
var pdfdocument = new PdfDocument();
pdfdocument.LoadFromFile(inputFilePath);
pdfdocument.SaveToFile(outputFilePath, Spire.Pdf.FileFormat.DOC);
}
Any tips on how to debug this or where to report if it's a bug?
Thanks,
Aaron Evans