How to use pdf.js with qwebengine
I am learning to make a simple browser with qtwebengine on ubuntu. I also want to display pdf links ( external pdf ) in the browser and found pdf.js is suitable for this purpose. But since I am a newbie I dont know how to work with external pdfs, I have implemented pdf.js for local pdfs but I dont know how to supply the external url to pdf.js and also how to handle CORS in pdf,js with qwebengine.
Any help is highly appreciated.
Thanks and Regards