SaveAsTiff error

I am seeing the following error using the SaveAsTiff() method on a PdfConverter object:


Aspose.Pdf.Kit.PdfKitException: Curent operation
produces an image with size that is not suppoted by .NET. Please decrease the
resolution of the result image.

The error is intermittent, and occurs on PDFs that are normally successfully converted to TIFF. In my application I’ve seen the same document throw this exception once, and then be successful on the next try. Additionally, this application was running for weeks before this error began to appear.

The C# source that is throwing the exception:
<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:“Times New Roman”;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
var targetTiffSettings = new TiffSettings(CompressionType.CCITT3);
targetTiffSettings.ColorDepth = ColorDepth.Format1bpp;
targetTiffSettings.SkipBlankPages = false;
converter.SaveAsTIFF(targetTIFFStream, (int)resolution.XResolution, (int)resolution.YResolution, targetTiffSettings);

Any ideas on what could be causing this exception?

Hi Adam,

First off, please try to use the latest version at your end. If it doesn’t resolve your issue then please share the input PDF file with us, so we could investigate the issue at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,