Hi,
I’m currently working on a system that allows users to create documents based on templates with mergefields etc.
All these templates are wordml documents.
there is a seperate template for the header and footer that goes with every document. Both the header and the footer contain images.
My application uses a third party rich texteditor control which allows the user to edit the header, footer and body while making a document. At the end the three templates get merged into 1 big wordml file.
I’m then converting that file to pdf with aspose.words before saving it to the server.
However the images from the header and footer dissapear when i convert the combined wordml. All other text show up fine.
If I convert the header and footer seperate the images show up fine in my converted pdf.
The images also show if I open the combined xml in word.
I’m testing it with a simple block of code atm
Document doc1 = new Document("C:\temp\templates\header.xml");
Document doc2 = new Document("C:\temp\templates\full.xml");
doc1.Save("C:\temp\templates\header.pdf");
doc2.Save("C:\temp\templates\full.pdf");
header.pdf and header.xml contain images
full.xml contains images, full.pdf doesn’t.
This will mostlikely be a problem with the markup of the wordml
document that got returned by the control. However the fact that it
shows up fine in word would suggest that the markup is fine as it is.
Any idea from your side what might be causing that strange behavior?
If it would help i could upload a version of the unmerged and merged wordml files. I’ll have to filter some text out of these first before I post them tho, considering they contain customer information.
Thanks in advance