We are using version 7 of Aspose PDF. Below is the code to render the first page of a PDF as JPG:
Aspose.Pdf.Document objPDF = new Aspose.Pdf.Document(@"d:\input.pdf");
MemoryStream pStream = new MemoryStream();
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(72);
Aspose.Pdf.Devices.JpegDevice jpegDevice = new Aspose.Pdf.Devices.JpegDevice(800, 800, resolution, Convert.ToInt32(50));
byte content = pStream.ToArray();
The resulting image file we receive is an all empty JPG. I am attaching both input and output files to this post.
Please advise on how to fix this. This is an urgent issue for us.