Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Oct 10, 2014 3:10 pm

Spire.Doc just stopped converting document to PDF. It has been working fine so far throughout our evaluation. Oddly enough it started happening a day after adding the temp license provided by sales team. Temp license does not expire until 10/17/2014. See code snippet below that no longer works.

//Create a byte array
MemoryStream stream = new MemoryStream();

//CONVERTING TO PDF NO LONGER WORKS AND JUST HANGS. IT HAS BEEN WORKING FINE UPTO THIS POINT. HTML MUST BE VALID BECAUSE CREATING DOCX WORKS.
doc.SaveToStream(stream, Spire.Doc.FileFormat.PDF);

//CONVERTING TO DOCX WORKS .
doc.SaveToStream(stream, Spire.Doc.FileFormat.DOCX);

Please advise.

akhan2003
 
Posts: 11
Joined: Tue Sep 09, 2014 6:47 pm

Fri Oct 10, 2014 4:16 pm

I also modified the code to use SaveToFile instead of SavetoStream method instead but still not working.
Code: Select all
doc.SaveToFile("C:\\PDF\\pdfoutput.PDF", Spire.Doc.FileFormat.PDF);
                System.Diagnostics.Process.Start("C:\\PDF\\pdfoutput.PDF");

akhan2003
 
Posts: 11
Joined: Tue Sep 09, 2014 6:47 pm

Sat Oct 11, 2014 3:43 am

Hi,

Sorry for the inconvenience caused by us.
Please provide your code and test documents, which can help us to reproduce your issue and offer the solution to you quickly.

Best Regards,
Lisa
E-iceblue support team
User avatar

lisa.chen
 
Posts: 21
Joined: Thu Mar 20, 2014 2:31 am

Return to Spire.Doc