Simultaneous creation of pdf

I've test the simultaneous creation of two pdf report from an excel workbook designer, using aspose cells to create the xml.
The report contain, among other things, an image (the logo of my company).
Everything went fine, but on one of the pdf, the logo didn't render, instead I got a big red cross.
Do you know what might causing this?

code :

MemoryStream asposePDFXML; //generated by aspose.cells

asposePDFXML.Seek(0, SeekOrigin.Begin);

//Load the XML document into Aspose.Pdf

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.Load(asposePDFXML);

Pdf pdf = new Aspose.Pdf.Pdf();

pdf.IsImagesInXmlDeleteNeeded = true; //assure deleting of temp image

pdf.IsTruetypeFontMapCached = false;

pdf.BindXML(xmlDoc, null);

//printing du pdf

MemoryStream ms = new MemoryStream();

pdf.Save(ms); //this ms is then send to the client

Hi,

Can you please elaborate what you mean by simultaneous creation of two pdf. Also can you provide us with the Excel file that you are using, the xml produced and the output pdf that you obtained so that we can more accurately determine the cause of the problem.

Thanks.

Hi,

Due to the statement pdf.IsImagesInXmlDeleteNeeded = true; as soon as first pdf is created the image file is deleted and is not available for the second pdf. You can either comment this statement or a better approach would be to create the pdf once and then simply copy the memory stream instead of creating the same pdf multiple times as this will be faster.

Thanks.