PDF JS doesn't workPDF JS doesn't workhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1001971032024-03-29T12:42:26Z2024-03-29T12:42:26ZRE: PDF JS doesn't workDenvazi Knozhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1002235052017-12-06T13:32:09Z2017-12-06T13:32:09ZHi Chema,<br /><br />It works after unchecking the expose global option. I also had to add pdfjs worker.<br />Thank you so much.Denvazi Knoz2017-12-06T13:32:09ZRE: PDF JS doesn't workChema Balsashttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1002046562017-12-06T10:18:30Z2017-12-06T10:18:30ZHey Denvazi<br /><br />That's probably caused by the new AMD loader getting in the way of your library. Take a look at the <a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/using-external-libraries">Using External Libraries</a> tutorial<br /><br />The easiest way, as explained in the tutorial is:<br /><blockquote>With the release of Liferay Portal CE 7.0 GA4 and Liferay Digital Enterprise 7.0 SP2 (Fix Pack 8), it will be possible to hide the Liferay AMD Loader through Liferay Portal’s System Settings. Open the Control Panel, navigate to Configuration → System Settings, and click JavaScript Loader under the Foundation tab. Finally, uncheck the expose global option.</blockquote><br /><br />Hope that helps!Chema Balsas2017-12-06T10:18:30ZPDF JS doesn't workDenvazi Knozhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1001971022017-12-06T07:45:58Z2017-12-06T07:45:58ZI'm trying to use PDF JS in my portlet. My liferay version is 7ga4.<br />I include this script<br /><script type="text/javascript" src="/o/PDFJStest/pdf.js"></script><br /><br />But I'm getting this error.<br /><br /><span style="color: #ff0000">Uncaught ReferenceError: PDFJS is not