The process freezes when call doc.ProcessParagraph()

Hello Tahir

I have a huge document and it everytime got freeze when I call doc.ProcessParagraph()

Please advise how to manage it? I need to assign page number and before that I need to call doc.ProcessParagraph() and it freeze or fail there?

Please help me to spilit and process in chunks?

Thanks
Syed

@syedimam can you please attach your source document?

wsPublicLandApplicationV2.zip (25.7 KB)wsPublicLandApplicationV2.zip (46.0 KB)

@syedimam apologize for the confusion. I was actually inquiring about your source document file, such as a doc or docx file. Additionally, I quickly checked your code and was wondering if you are using the Aspose.Words package or only Aspose.Pdf. If you are using Aspose.Pdf, I can help you re-tag this post to the appropriate area where you can receive better guidance.

I am only using Aspose.pdf for now

@syedimam

We have checked the code files shared by you. Can you please share if they can be used independently in a console application? It is hard to go through such a massive code file. Can you please share a sample console application that we can run without any error and replicate the same issue as you are facing?