We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Use Aspose.Word to Create XML Template


It is a great thing that you have this. But this does not instruct how to actually transform a Word document into an XML Template for ASPOSE.PDF. Do you have more detailed instructions? Plus, many of the links are broken for me.

I believe I have found the answer. I will let you know if I have further questions.


Converting to PDF

[This feature is available in Aspose.Words for .NET only.]

Saving to PDF needs further description because the document is first saved in the intermediate XML format, not in Adobe PDF directly. After saving in this format, you have to invoke Aspose.Pdf to produce the resulting PDF document as described below.

' Open the DOC file using Aspose.Words.

Dim doc As Document = New Document("MyDocument.doc")

' You can merge data/manipulate document content here.

' Save the document in Aspose.Pdf.Xml format.

doc.Save("MyDocument.xml", SaveFormat.AsposePdf)

' Read the document in Aspose.Pdf.Xml format into Aspose.Pdf.

Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf()

pdf.BindXML("MyDocument.xml", Nothing)

' Instruct to delete temporary image files.

pdf.IsImagesInXmlDeleteNeeded = true;

' Produce the PDF file.