We are encountering a heap memory error in the following line:
document.save(byteArrayOutputStream, opts)
The document size is only 229.4 kB, and the method is used To extract Html text from all content controls.after …...the method is used to extract HTML text from all content controls...we’re using Jsoup to fetch the HTML text based on each content control...