Is it possible to reference previous images in a following <Image /> tag when using the BindXml method?
In the following example, the image data is included in the XML twice. I would prefer to only include it once and reference the first instance when including the image a second time.
// http://tango.freedesktop.org/CodeTangoSet
// 16x16/text-x-java-source.png
var base64icon = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABm" +
"JLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAA" +
"B3RJTUUH1woeEREP5xtJ/AAAAB10RVh0Q29tbWVudABDcmVhdG" +
"VkIHdpdGggVGhlIEdJTVDvZCVuAAACY0lEQVQ4y4WT3UuTURjA" +
"f2d7361mztBl1MwUajlMbcUKK6NAM6OL7kv6GyoQw+husQbh3x" +
"DUVdD3h6jgRYqWYmLm18TKspqJ4dKx+c736WIqzhk9cOCcB87v" +
"/B7O8yhScSIYCnTy/6hpbGhqz8gGQwExTTNjGYYhhmFILBYTwz" +
"AkGApIMBSoXn9XW39o72jJgGdv3c6PmWmO+iu5frWBu82htmAo" +
"sGaSBvCV+xERBBAREAGE4bEhshxZRGYiXL50hfsP7rUBKgPwfr" +
"A3w+Cg9xDbspw8evKQWCzG4uIi/yyhvPRw6tGUA6YIppj4fIeZ" +
"mvqCzWbDmZ1DS+vLzQGDH/thRX8+Os+379MYhoGIoGs2dF3D7z" +
"uWZmDZqFtaUkH0zwI/IxG8xXvZZRf0uc/k6Qb7Cwvp7utaqX4T" +
"g6GRAQAmJsNYv77h2aNuNOJYLYpPPcKyxUGpv4ZEbgV3mm/Hgb" +
"NpBl5PGV5PGUop9hQfwJGzE8sWF0lrNlbHDnJcBTjz8qk6foqa" +
"MzV2pdTrNIOR8Q9r+9r6W9TW3wJgyVhK/UBsgZlfEXredeM/ch" +
"TTNI0Mg535bnRNZ+733Fo+mUySSMRJJpPk5brw7PPQ19+bAOIZ" +
"BuMTYRwOB09ePKairIKC3QU4s50oIJFI0NmTGpnl5eU4cE7baD" +
"AWHudkZRWaVaPrbSfDo8PEE3F0Tcdut1NXXYcpwqvWl7bGa00D" +
"aQC328352gs8f/2UosIiSjxeXLkunE4n0WiU2blZwpNhRsdHAS" +
"6y2s/BUKADOL0KEgQsoCwKhUJEUEohCGIKmPTfaLh5BOAv2s0Q" +
"1/ZjUwcAAAAASUVORK5CYII=";
var xmlDoc = new System.Xml.XmlDocument();
xmlDoc.AppendChild(xmlDoc.CreateElement("Pdf"));
for(int i = 0; i < 2; ++i)
xmlDoc.DocumentElement
.AppendChild(xmlDoc.CreateElement("Section"))
.AppendChild(xmlDoc.CreateElement("Image"))
.AppendChild(xmlDoc.CreateElement("ImageData"))
.InnerText = base64icon;
var pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(xmlDoc, null);
pdf.Save(@"d:\pdftest\xml-imagedata.pdf");