I have a list in a document, like:
I’ve attached the input doc, and the output doc, xml and pdf.
The xml shows the line:
<Image File=“C:\Documents and
Settings\Temp\Aspose.Words.656c0f61-08da-4518-874c-e332c4d5d2a1.001.png” Type=“png” FixWidth=“11.25”
The code for the conversion is:
Document doc = new Document(@“C:\test_in.doc”);
private void saveToPDF(Document doc, string outputFilename)
//Save the document in Aspose.Pdf.Xml format into a memory stream.
MemoryStream stream = new MemoryStream();
//Seek to the beginning so it can be read by XmlDocument.
//Load the document into an XmlDocument
XmlDocument xmlDoc = new XmlDocument();
//Load the XML document into Aspose.Pdf
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
//Make sure the images that were saved by Aspose.Words into Windows temporary
//folder are automatically deleted by Aspose.Pdf when they are no longer needed.
pdf.IsImagesInXmlDeleteNeeded = false;
//*** Aspose.Pdf font cache, see comments below.
pdf.IsTruetypeFontMapCached = false;
//Now produce the PDF file.