Code: Select all
fileStream.Position = 0;
Document = new GdPicturePDF();
GdPictureStatus status = Document.LoadFromStream(fileStream);
if (status != GdPictureStatus.OK)
{
throw new ArgumentException("Loading image into GdPicture failed: " + status.ToString(), "fileStream");
}
I've attached the file, so you can test it yourself. We're using the latest version of GDPicture.