We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Taking too long for saving document as stream

I’m generating the pdf with tables and it will create around 200-300pages.
So while saving the document as stream it taking too long and not completing but its working for around 10 pages
Do we need to do any optimization for long time?
I’m using below steps.

  1. Creating document
  2. Adding header and footer
  3. Inserting the table
  4. Document.ProcessPragraphs()
    5.Save document as stream. Document.save(stream).

@RajRitheesh

Can you please share the complete sample code snippet which we can run and reproduce the issue that you are facing? We will surely test the scenario in our environment and address it accordingly.

I have attached my source code.
Report is generating for sample input of GetDataTable() and not working for GetDataTable2() & GetDataTable3().
“Column 5” data causing dome issue wProgram.zip (2.0 KB)
hile generating the data.

@RajRitheesh

We were able to notice the issue in our environment that API was taking long time to generate the PDF. However, can you please share how much time is it taking at your end? Also, please share your complete environment details like OS Name and Version, RAM Size, etc. We will log an investigation ticket in our issue management system and share the ID with you.

It is not generating report and keep on running.
I’m using below configuration:
OS: Windows 10
RAM: 8GB
Tool: Visual Studio 2017

Today I have noticed that if cell value more than some character or size ( 1130 character) it’s creating the issue while generating pdf.

We are using paid version and it’s impacting users report. Could you please let me know the update.

@RajRitheesh

We have logged an issue as PDFNET-50624 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Any update on this?

@RajRitheesh

The ticket has recently been logged in our issue tracking system and is pending for review. It will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we have some definite updates regarding its resolution. Please spare us some time.

We are sorry for the inconvenience.