Spent quite some time trying to figure out how to do this as there were no cut-and-paste examples .... so here you go, in case it is of some help to others like ourselves.
JScript ASP page implementing Word to PDF using the COM interface ...
========================
<%@ LANGUAGE = "jscript" %>
Begin ...
<%
var baseFile = "C:\\Inetpub\\wwwroot\\WordSamples\\test3";
/* =====================
Open Word & Save
to Aspose.Pdf XML
===================== */
var lic = Server.CreateObject("Aspose.Words.License");
lic.SetLicense("C:\\Inetpub\\wwwroot\\WordSamples\\Aspose.Custom.lic");
var helper = Server.CreateObject("Aspose.Words.ComHelper");
var doc = helper.Open(baseFile + ".doc");
doc.Save_2(baseFile + ".xml", 3);
doc = null;
helper = null;
lic = null;
/* =====================
Convert to PDF
===================== */
var lic = Server.CreateObject("Aspose.Pdf.License");
lic.SetLicense("C:\\Inetpub\\wwwroot\\WordSamples\\Aspose.Custom.lic");
var pdf = Server.CreateObject("Aspose.Pdf.Pdf");
pdf.BindXML_2(baseFile + ".xml",null);
pdf.isImagesInXmlDeleteNeeded = true;
// OPTIONAL: Set PDF custom properties
// ===================================
pdf.author = "Demo User";
pdf.creator = "Demo System";
pdf.keywords = "Hot Document";
pdf.subject = "Report on Things";
pdf.title = "Customer #123";
// OPTIONAL: Set PDF document security
// ===================================
var sec = Server.CreateObject("Aspose.Pdf.Security");
sec.isContentsModifyingAllowed = false;
pdf.security = sec;
sec = null;
pdf.Save(baseFile + ".pdf");
pdf = null;
lic = null;
/* =====================
Remove Interim
XML File
===================== */
var fs = Server.CreateObject("Scripting.FileSystemObject");
fs.DeleteFile(baseFile + ".xml");
fs = null;
%>
End!