Free Support Forum -

Evaluating Word to PDF using demo products

Is it possible to evaluate the word to pdf conversion using the demo libraries? We are currently attempting this using Aspose.Word v3.2.2.0 and Aspose.Pdf v2.6.3.0. If we stream the word document to the client then this is displayed as expected. However, when we attempt to convert the document to a pdf before streaming the pdf to the client nothing is displayed in the client browser (no errors are generated either). The word document that we are using is a simple document containing a single line of text for testing purposes.

' Save the document in Aspose.Pdf.Xml format into a memory stream.

Dim stream As New MemoryStream

doc.Save(stream, Aspose.Word.SaveFormat.FormatAsposePdf)

stream.Seek(0, SeekOrigin.Begin)

' Load the document into an XmlDocument

Dim xmlDoc As New XmlDocument


' Load the XML document into Aspose.Pdf

Dim pdf As New Aspose.Pdf.Pdf

pdf.BindXML(xmlDoc, Nothing)

' Send the populated document to the client.

pdf.Save(Path.GetFileNameWithoutExtension(Source) + ".pdf", _

Aspose.Pdf.SaveType.OpenInBrowser, _


Please try adding the following line at the end: