Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Apr 04, 2014 9:48 pm

I am evaluating the trial version of Spire.DOC and Spire.PDF for simple document conversion.

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

fijiaaron
 
Posts: 1
Joined: Fri Apr 04, 2014 3:02 pm

Mon Apr 07, 2014 4:15 am

Hello,

Sorry for late reply as weekend.
Thanks for your inquiry. Sorry that at present our library doesn't support the feature that pdf to doc conversion.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF