Slow performance of ProcessParagraphs()

We are using the Aspose PDF jar to generate the PDF by giving the HTML like below. We are seeing performance issue with this line of code. pdfDocument.processParagraphs(); I see the similar issue earlier. Do we have a solution for it

My technology stack is JAVA

Eg:
HtmlFragment htmlFragment = new HtmlFragment(updatedHtml);
page.getParagraphs().add(htmlFragment);
pdfDocument.processParagraphs();

@lakshmiM

Would you please share your sample sample HTML in .zip format along with complete details of your environment? We will test the scenario in our environment and address it accordingly. Also, what time API is currently taking at your end and what is your expected performance criteria?