Reg : ASPOSE.PDF Maximum page count

Hi Team,

We are facing "Index was outside the bounds of the array." error and the PDF is not generated in our Application. The total no of records available is "7289". When we went for the details,and tested we found that the records are getting generated as pdf till "7285" with 640 pages.

When we reduced the font size to 8, the same report is generated successfully. with total no of records "7289" with 227 pages.

Is there any limit for the page count more than 640 with the Aspose.PDF ?, Please confirm

Below is the error which we have faced :-

"Index was outside the bounds of the array."

at Aspose.Pdf.Document.ޘ.޽(Int32 Ӡ)
at Aspose.Pdf.Document.ᓡ.ᓦ(۰ ݭ, Int32 ᓧ, Int32[] ު, Int32[] ި, Int32 ᓨ)
at Aspose.Pdf.Document.ᓡ.ᓦ(۰ ݭ, Int32 ᓧ, Int32[] ު, Int32[] ި, Int32 ᓨ)
at Aspose.Pdf.Document.ᓡ.ᓥ(۰ ݭ)
at Aspose.Pdf.Document.۰.ۺ()
at Aspose.Pdf.Pdf.Close()
at NISP.Reports.Services.ReportDataManagerService.CreateFinalPDF(Pdf pdf, ReportDetail reportDetail, String currentUserId) in C:\Subbu\NISP_DEV\NielsenIntegrationServicesPlatform\Modules\Reports\Reports\Services\ReportDataManagerService.cs:line 699
at NISP.Reports.Services.ReportDataManagerService.GenereateQcChecksReport(ReportDetail reportDetail, String currentUserId) in C:\Subbu\NISP_DEV\NielsenIntegrationServicesPlatform\Modules\Reports\Reports\Services\ReportDataManagerService.cs:line 462

Regards,

Subbu

Hi Subbu,


Thanks for using our products.

Can you please share some code snippet which can help us in replicating this issue at our end. We are sorry for this inconvenience.

Hi Shahbaz,

1) The Step 1 code snippet says how the Dataset is been populated from DB.

2) The step 2 code snippet Says the defined parameters for the Loop with total rows.count from the dataset and MaxRecordsperpara with teh details.

3) The step 3 code snippet says the each 1000 records from the dataset is been added to the paragraph.

4)The CreateFinalPDFsays the pdf is ready with the data from the dataset and the actual error occur's when the pdf.close(); method is executed.

Please help us ASAP.

Regards,

Subbu

Hi Team,

We are able to generate teh reports and in the report generated we are getting a message at the top

"Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2008 Aspose Pty Ltd"

We are not getting this message when we generate from our actual application. We are facing the error "Index bounds out of array".

Please find the attached sample project/Report for reference. and let us know the update ASAP.

Regards,

Subbu

Hi Subbu,

Thanks for sharing additional information. Your code is working fine, actually you are not applying license so getting the evaluation watermark. Please apply license before instantiating Pdf object, evaluation watermark issue will be resolved.


StreamWriter StreamObj = new StreamWriter(reportServerName);
//Set license.
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
Pdf pdf = new Pdf(StreamObj.BaseStream);
//create common section
Section pdfSection = pdf.Sections.Add();
GetReportHeader(pdf, pdfSection);
GetPDFFormatterHeader(pdfSection);
GetPDFFormatter(pdfSection, string.Empty);
returnValue = CreateFinalPDF(pdf);

Sorry for the inconvenience faced.Please feel free to contact us for any further assistance.<o:p></o:p>

Best Regards,

Hi Team,

The issue is not with the below message.

"Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2008 Aspose Pty Ltd"

We have also included in the actual application, we are facing the "Index was outside the bounds of the array." for the total no of records 7289.

Could you please let me know is there any size litimt for the license Aspose?

Regards,

Subbu

Hi Subbu,


Thanks for your inquiry. Aspose.Pdf has no limitation on number of records and size of Pdf document generation it relates to your system resources. Please find attached file, I’ve successfully generated Pdf document with all 12996 records, included in Data.xls file.

Moreover, could you please share your system environments for further investigation?

Please feel free to contact us for any further assistance.<o:p></o:p>


Best Regards,

find the attached environment details.

Find teh attached Production support details

Hi Subbu,


Thanks for providing the environment details. I’m setting up the shared environment at my end for testing and will update you soon.

Thanks for your patience and cooperation.


Best Regards,