This works locally, but when run behind a web page on IIS (6.5, WIN2003) then the image is there but the metadata of the image is missing.
Running locally WIN7 it works perfectly.
I feel it is related to Ximage being reliant on System.Drawing and System.Drawing being reliant on GDI and GDI not working well with IIS.
Running locally WIN7 it works perfectly.
I feel it is related to Ximage being reliant on System.Drawing and System.Drawing being reliant on GDI and GDI not working well with IIS.
protected internal MemoryStream AddImageToPDF(MemoryStream imageStream) { Page p1 = originalDoc.Pages[1]; p1.Resources.Images.Add(imageStream); p1.Contents.Add(new Operator.GSave()); MemoryStream outputStream = new MemoryStream(); originalDoc.Save(outputStream); imageStream.Flush(); imageStream.Close(); return outputStream; }