Terminal Server issue

Hi,
I'm using Aspose.Pdf.Kit version 3.4.0 in .NET to convert pdf files to tiff images, which can be loaded later. It is working as expected in the development environment but in the production environment (Windows Server 2003 Terminal Services) I am getting the following error messages:
"Out of memory" if SaveAsTIFF(imageFilePath) is used
or
"Parameter is not valid" if SaveAsTIFF(outputStream) is used.


Here is my code:

// Using SaveAsTIFF(outputStream)
Aspose.Pdf.Kit.PdfConverter conv = new Aspose.Pdf.Kit.PdfConverter();
MemoryStream ms = new MemoryStream();
string filePath; //path to pdf file

conv.BindPdf(filePath);
conv.DoConvert();

conv.SaveAsTIFF(ms);
conv.Close();

Image image = Image.FromStream(ms); //this gives the "Parameter is not valid" error message

// using SaveAsTIFF(imageFilePath)
Aspose.Pdf.Kit.PdfConverter conv = new Aspose.Pdf.Kit.PdfConverter();
string filePath; //path to pdf file
string imageFilePath; //path to new image file

conv.BindPdf(filePath);
conv.DoConvert();

conv.SaveAsTIFF(imageFilePath);
conv.Close();

Image image = Image.FromFile(imageFilePath, false); //this gives the "Out of Memory" error message

Hi Serge,

Please share the PDF file you're having problem with, so that we could test the issue at our end and help you out.

We're sorry for the inconvenience.

Regards,

Hi,

There is nothing specific about pdf files I try to convert. I have attached one I have tried recently.

I have created the file using Adobe Acrobat Pro 9.

I also want to add to my original post that when SaveAsTiff method is used to save a pdf file as tiff it creates a zero length file.

Regards

Hi Serge,

I have logged this issue as PDFKITNET-9438 in our issue tracking system. Our development team will be looking into the matter and you'll be updated via this forum as the issue is resolved.

We appreciate your patience.

Regards,