Hello David,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for considering Aspose and I'm extremely sorry for replying you so late.
In fact we've been busy while figuring out a mechanism on how to get your requirement accomplished. When using the code to generate the PDF document, we can use the property ImageInfo.IsImageNotFoundErrorIgnored to true which ensures that if the image is not found, the error can be ignored.
Class ImageInfo;
///
/// Gets or sets a bool value that indicates whether the "image not found" error be ignored or not.
///
public bool IsImageNotFoundErrorIgnored
It is false by default. Namely, if the image is not found, it throws an exception that Image not found. We can set it true to ignore the exception and show a red cross 'X' at where the image ought to be.
However, we can only use this attribute like "Image1.ImageInfo.IsImageNotFoundErrorIgnored = true;" . So, for xml2pdf, it is not convenient because it requires that we must set this attribute for every image manually. Which is not feasible/practical.
In order to avoid this inconvenience, we've decided to add a new attribute " Pdf.IsImageNotFoundErrorIgnored". So, your requirement will be satisfied programmatically like this:
pdf.BindXml(...);
pdf.IsImageNotFoundErrorIgnored = true; //false by default
pdf.Save();
For the sake of implementation, I have logged it in our issue tracking system as PDFNET-12046. We will further investigate this requirement in details and will keep you updated on the status of a correction.
Your patience and understanding is greatly appreciated in this regard.
We apologize for your inconvenience