We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF to TIff conversion error with PDF from scanner machine

I receive an exception error with the 2 PDF Attached coming from a scanner machine. I am using Aspose.pdf 6.4.2 and this code:

Aspose.Pdf.Document oDoc = new Aspose.Pdf.Document(sFile);

// Set the conversion options
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(ConversionResolutionPdf);

Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();

switch (TiffCompressionMethod)
case TiffCompressionMethods.NONE:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.None;
case TiffCompressionMethods.CCITT3:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT3;
case TiffCompressionMethods.CCITT4:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT4;
case TiffCompressionMethods.RLE:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.RLE;
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.LZW;

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Portait;
tiffSettings.SkipBlankPages = false;

// Crete the conversion object
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);

String sFileOut = sFile + “.tif”;
// make the conversion to the output stream
tiffDevice.Process(oDoc, sFileOut);
catch (Exception ex)
m_log.Error(“Error converting Pdf file " + sFile + " to tiff”, ex);
return null;

Please note that Aspose.Pdf.Kit will works fine with these files.
Aspose.PDF.Facades gets exception instead.
I cannot use Aspose.pdf.kit beacouse I haven’t the license and It is out of sale now.

can you help me?

Hello Christian,

Thanks for using our products. I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
will investigate this issue in details and will keep you updated on the status
of a correction.

We apologize for your inconvenience.

Hi Christian,

I would like to inform you that the fix for this issue (32564) will be
available in our upcoming monthly release due early next month. You’ll
be notified via this forum thread as soon as the release is available.

If you have any further questions, please do let us know.


The issues you have found earlier (filed as PDFNEWNET-32564) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan