Free Support Forum -

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”;
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:“Times New Roman”;
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.