Snippets
Converts a document from DOC to PDF using default options.
string dataDir = RunExamples.GetDataDir_QuickStart();
// Load the document from disk.
Document doc = new Document(dataDir + "Template.doc");
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)
Last updated