Free Support Forum - aspose.com

Parameters are not valid Error


#1

I got an issue while converting the pdf in attachment using this code with Aspose DLL version 6.5.0.0 and run time version: v1.1.4322

My assumption: While processing large pdf file it’s giving this error.
Need Help : Could you please provide Aspose 7.6.0.0 version DLL with runtime version v1.1.4322, This could be great help for us.

string jpgImg = @“D:\e1081358-aed1-4d1f-a48c-cc5fd4490b9a~002~Biglietto_MOBY_5201787047.jpg”;

byte[] pdf = File.ReadAllBytes(@“D:\e1081358-aed1-4d1f-a48c-cc5fd4490b9a~002~Biglietto_MOBY_5201787047.pdf”);

byte[] img = null;

PdfComponent.ConvertPDFToJpeg(pdf, ref img, 1,150, 50);

File.WriteAllBytes(jpgImg, img);

That’s the stack trace :

Comdata.Kofax.UnitTest.PdfComponentTest.ConvertToJpeg:

System.InvalidOperationException : Parameters are not valid

at .–.( )

at e.e.( , Queue )

at e.e.(‡ ,  )

at .–.()

at Aspose.Pdf.Devices.ImageDevice.(Page )

at Aspose.Pdf.Devices.JpegDevice.Process(Page page, Stream output)

at Comdata.Core.PdfComponent.ConvertPDFToJpeg(Byte[] pdfFileBuffer, Byte[]& jpgFile, Int32 numPag, Int32 resolution, Int32 quality) in D:\Projects\GED\API\Common\Source\Comdata\PdfComponent.cs:line 555

at Comdata.Kofax.UnitTest.PdfComponentTest.ConvertToJpeg() in D:\Projects\GED\API\Common\Source\Comdata.Kofax.UnitTest\PdfComponentTest.cs:line 146


#2

We are using licence version of Aspose DLL


#3

@Srinivas07

Thanks for contacting support.

I am afraid you are using quite old version of the API. Please note that it is always recommended to use latest version of the API as it contains more fixes and performance improvement. We request you to please use Aspose.PDF for .NET 19.3 in your environment and follow “Convert PDF Pages” example(s) from API documentation to convert PDF pages into JPEG. In case you still face any issue, please feel free to let us know.

Furthermore, we were unable to find any attachment with your post. Would you please make sure to upload attachment while posting in case you are still experiencing any issue. We will test the scenario in our environment and address it accordingly.


#4

Hi Ali,

Thank you very much for update, Our project frame work version is 1.1 where we are using Aspose library, Our project doesn’t support higher run time version of Aspose 1.1 so it would be great helpful for us if you can provide Aspose 7.6.0.0 version DLL with runtime version v1.1.4322.

Thanks,
Srinivas


#5

@Srinivas07

We regret that we may not provide such old version of the API as support is provided on the basis of latest version. Furthermore, please note that older version(s) contains deprecated and discontinued Classes and methods which are no longer part of latest release. In case you need further assistance or have another inquiry, please feel free to let us know.

We are sorry for the inconvenience caused.