Hi
Thanks you for additional information. Most of conversion time takes building page layout of the document. I used the following code for testing:
DateTime p1 = DateTime.Now;
Document doc = new Document(@"Test001\Aspose[1].Words.Demos.doc");
DateTime p2 = DateTime.Now;
doc.UpdatePageLayout();
DateTime p3 = DateTime.Now;
doc.SaveToPdf(@"Test001\out.pdf");
DateTime p4 = DateTime.Now;
Console.WriteLine("Reading document into the DOM: {0} sec", (p2 - p1).TotalSeconds);
Console.WriteLine("Building page layout: {0} sec", (p3 - p2).TotalSeconds);
Console.WriteLine("Saving to PDF: {0} sec", (p4 - p3).TotalSeconds);
Console.WriteLine("Total time: {0} sec", (p4 - p1).TotalSeconds);
Here is my result:
Reading document into the DOM: 1,8811076 sec
Building page layout: 102,7928794 sec
Saving to PDF: 10,6286079 sec
Total time: 115,3025949 sec
As you can see saving to PDF takes only 10 seconds, but building page layout of the document takes about 100 seconds. PDFSharp does not convert Word documents to PDF, so it does not need to build page layout. That is why creating PDF from scratch takes less time than converting Word to PDF.
Best regards.