Free Support Forum - aspose.com

Merge To PDF

I am not sure if this is a problem with Aspose.Word or Aspose.PDF, but I have a word template that I am performing a Merge on. I am then taking the resulting document and converting it to PDF.

The attached template works fine until I add the image in the header.

When I have the image up there, I get an error (see below).

What can I do to get this to work?

System.Web.Services.Protocols.SoapException was unhandled

Message="System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ApplicationException: Unknown sub element in HeaderFooter element. The element name is FloatingBox.\n at .᭩.᭪(Pdf ቭ, Section ᭁ, XmlTextReader , Boolean ᭫)\n at .᳡.᳢(Pdf ᫮, XmlTextReader )\n at .ᳵ.᫬(᫧ ᪫, XmlTextReader )\n at .᫧.᫰(XmlTextReader ᫱)\n at .᫧.᫯(XmlDocument ᫮, XslTransform ᨶ)\n at Aspose.Pdf.Pdf.BindXML(XmlDocument xmlDoc, String xslFile)\n at AsposeWrapper.ConvertToPdf(Document documentToConvert)\n at MailMerge.MergeTemplateToPDF(Guid TemplateId, DataSet MergeData)\n --- End of inner exception stack trace

The document is converted correctly with the latest versions of Aspose.Words and Aspose.Pdf.

Try to upgrade to the latest versions.