Parameter is not valid exception

Any idea what could cause this to happen? It is occurring randomly when I call the “SaveToImage” method on a document.
--------------------------------------------------------------------
Message : Parameter is not valid.
Source : System.Drawing

StackTrace: at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at 㨖.䆂.䆊(Int32 ԟ)
at 㨖.䆂.䆉(Int32 ԟ, Stream ԑ, ImageFormat ۋ)
at 㨖.䆂.䆇(Int32 ԟ, Int32 ԡ, Stream ԑ, ImageFormat ۋ, ImageOptions ⊉)
at Aspose.Words.Document.SaveToImage(Int32 pageIndex, Int32 pageCount, Stream stream, ImageFormat imageFormat, ImageOptions options)

Hi

Thanks for your inquiry. Could you please attach your document for testing? I will try to reproduce the problem on my side and provide you more information.
Best regards.

Unfortunately I cannot. The documents are created on the fly from a set of templates, converted to TIFFs, saved into our imaging system, and then the originals are deleted.

Hi Jason,

Maybe you can create sample application that will allow me to reproduce the problem. Also you can try to save the resulting document in DOC or DOCX format just before converting it to TIFF and attach this document here for testing. It is difficult to say what causes the problem since I cannot reproduce it on my side.
Also, please make sure you are using the latest version of Aspose.Words (6.3.0).
Best regards.