Hello,
I'm converting a PDF generated by Aspose into an mTIFF, and obtained the error "A generic error occurred in GDI+." in the Process() method, with an error code of -2147467259 within the exception. I've seen this error reported elsewhere on the support site, but it seems they were all related to older versions. My version is the latest one, downloaded from the website a few days ago (v9.1).
Code is as follows:
var pdfDocument = new Aspose.Pdf.Document("c:\\temp\\spreadsheet.pdf");
//create Resolution object
var resolution = new Aspose.Pdf.Devices.Resolution(300);
//create TiffSettings object
var tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.None;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Portait; //misspelled "portrait" within the API
tiffSettings.SkipBlankPages = false;
//create TIFF device
var tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);
//convert a particular page and save the image to stream
tiffDevice.Process(pdfDocument, "c:\\temp\\output.tif"));
Can you shed some light on this error? Am I doing something wrong?
Thanks!