I have 2 sites in the same server (one site is a framework and the other a frontend). The directories where the files reside are in the root of the server: FrontEnd and Framework_Acme I installed pdf.js in the FrontEnd directory with a subdirectory named Pdfjs. I implemented the code in javascript in an .asp inside the FrontEnd directory. But I need to move the PDF library to Framework_Acme because I will open another site soon and for sake o centralization. How can I point to the pdf.js library in the Framework_Acme using the .asp located in FrontEnd?
var pdfjsLib = window['pdfjs-dist/build/pdf']; <- How can I change this? It only works if the library is inside the FrontEnd site.
//Extension pdf.js (pdf.worker.js)
pdfjsLib.GlobalWorkerOptions.workerSrc = './pdfjs/pdf.worker.js';
//Async PDF
var LoadTask = pdfjsLib.getDocument(PDF_URL);
...
Resolved - a mix up in a variable took me to bad paths...