/ Published in: C#
The code sample below converts a whole document from DOC to PDF using default options.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
C# Code Snippet =============== // For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET // The path to the documents directory. string dataDir = RunExamples.GetDataDir_QuickStart(); // Load the document from disk. dataDir = dataDir + "Template_out_.pdf"; // Save the document in PDF format. doc.Save(dataDir); VB.NET Code Snippet =================== ' For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET ' The path to the documents directory. Dim dataDir As String = RunExamples.GetDataDir_QuickStart() ' Load the document from disk. Dim doc As New Document(dataDir & "Template.doc") dataDir = dataDir & "Template_out_.pdf" ' Save the document in PDF format. doc.Save(dataDir)
URL: http://goo.gl/OW5rWs