Conversion Word / Excel to TIF - Parameter is not valid

When converting Word documents to TIF (CITT3, CITT4) and using the latest release: 11.2.0 (Cells: 7.2.0) on a Windows XP with SP3 or Windows 2003 R2 with SP2 we get the following error: Parameter is not valid. With the release 11.1.0 the conversion still works correctly without any error.

On a Windows 7 or Windows 2008 OS the same code works OK, without this error. for both version 11.1.0 and 11.2.0.

There seems to be some issue with XP and 2003 OS in combination with version 11.2.0.

-------
Code:

private Stream[] ConvertWordDocumentToTiffStream(Aspose.Words.Document document, TiffProfile profile)
{
Stream[] outputFiles;
MemoryStream outputFile;

//Create the ImageSaveOptions
Aspose.Words.Saving.ImageSaveOptions imageOptions = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Tiff);

//Set the compression
switch (profile.Compression)
{
case Compression.None:
imageOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.None;
break;
case Compression.RLE:
imageOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.Rle;
break;
case Compression.LZW:
imageOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.Lzw;
break;
case Compression.CITT3:
imageOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.Ccitt3;
break;
case Compression.CITT4:
imageOptions.TiffCompression = Aspose.Words.Saving.TiffCompression.Ccitt4;
break;
}

// Set the resolution
imageOptions.Resolution = profile.Resolution;

outputFiles = new Stream[1];

outputFile = new MemoryStream();
imageOptions.PageIndex = 0;
imageOptions.PageCount = document.PageCount;
document.Save(outputFile, imageOptions);

outputFiles[0] = outputFile;


return outputFiles;
}

Hi Peter,

Thanks for the inquiry. First off, please try to use the latest Aspose.Words v11.3.0 at your end and see if it resolves your issue. If it still doesn't resolve your issue then please share input Word document for further investigation. We'll take a closer look and guide you accordingly. In addition, please also describe TiffProfile details.

I hope, this will help.

Good morning

I have the same problem occurs in the parameter TiffCompression.Ccitt4 to convert Docx to tiff

Dim options As New ImageSaveOptions(SaveFormat.Tiff)
options.PageIndex = 0
options.PageCount = doc.PageCount
options.Resolution = 300
options.TiffCompression = TiffCompression.Ccitt4

thank you very much

Catalina

Hi
Catalina,


Thanks for the inquiry. Could you please share input Word document here? We will take a closer look and guide you accordingly.

Hi, attachment document.

Hi Catalina,

Please accept my apologies for late response.

I have managed to reproduce the same problem at my end. I have logged this issue in our issue tracking system and you will be updated via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-6388) have been fixed in this .NET update and this Java update.


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