Thanks for sharing this solution here!
But I have already tried these steps but I have not succeeded in fixing this problem.
I created one demo app and that was working fine but in my existing project, it did not work.
Would it be possible if you could send us your sample app so we can take a closer look? If you would prefer a private channel to send us your sample, please feel free to create a support ticket here: https://www.pdftron.com/company/contact-us/