Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

JPG losing Metadata when being added to PDF on IIS

$
0
0
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.

 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;        }


Viewing all articles
Browse latest Browse all 3131

Trending Articles