Deleting the unused styles from the document

Hi there,
We are using Document.removeUnusedResources(), which is costly any taking time in range of half and 1 second. Our requirement is just to remove the unused styles. Just curios, If there a less expensive way of doing so?

Thanks.

Hi Praneeth,


Thanks for your inquiry. Could you please attach your input Word document along with following detail here for testing? I will investigate the issue on my side and provide you more information.

  • OS (Windows Version or Linux Version)
  • Architecture (32 / 64 bit)
  • Java version