during the test Spire.Doc Professional I encountered problems when exporting to PDF.
The test was to take an existing word document and simply export it is in WORD to PDF to test the library.
This is the code I used:
- Code: Select all
Document document = new Document();
document.LoadFromFile(@"C:\document.doc");
//FOR DOC
document.SaveToFile("Sample.doc", FileFormat.Doc, Response, HttpContentType.Attachment);
FOR PDF
document.SaveToFile("Sample.pdf", FileFormat.PDF, Response, HttpContentType.Attachment);
The DOC file generated is perfect, but the PDF file no.
I have attached all three files (that of departure, and the two generated with Spire.Doc)
Other information:
I downloaded and installed only one file for the Professional version: Spire.Doc Pro Edition for. NET Version: 4.2