Image merge fields not showing in FormatAsposePdf


I’m trying to merge an image fields with aspose.word. When i save the document
as SaveFormat.FormatDocument the image appears in the document. But when i try
to save the document as SaveFormat.FormatAsposePdf, the xml of the image is not showing in the XML document. Probably a feature which still needs to be implemented.
If you do, you’ll make at least one guy happy.


C# code is here:
XmlDocument xmlDoc = new XmlDocument();

Word aspWord = new Word();
Document aspDoc = aspWord.Open(“c:\projects\upload\”);
int cntChilds = xmlDoc.DocumentElement.ChildNodes.Count;
string strEndVal ="";
if (cntChilds > 0 )
string[] strFields = new string[cntChilds];
object[] strValues = new object[cntChilds];
for (int i =0; i < cntChilds; i++)
strFields[i] = xmlDoc.DocumentElement.ChildNodes[i].Name;
strValues[i] = xmlDoc.DocumentElement.ChildNodes[i].InnerText;
//Fill the fields in the document with user data.
aspDoc.MailMerge.Execute(strFields, strValues);
aspDoc.Save(“c:\projects\upload\chartertemplate.xml”, SaveFormat.FormatAsposePdf);
Aspose.Pdf.Pdf aspPdf = new Aspose.Pdf.Pdf();


forgot to mention:
i’m using the release version of aspose.word 1.3.4
1.4 doesn’t recognize SaveFormat.FormatAsposePdf as a valid format



Saving Word documents in PDF format has not been fully implemented yet.

SaveFormat.FormatAsposePdf enumeration was added in one of the beta releases and made its way to the final release too early so it has been removed for now.

Sorry for the inconvenience.

Aspose.Word will support saving documents in PDF format in the future.



Check out Aspose.Word 1.6 can be used together with Aspose.Pdf to convert DOC files to PDF.