Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
PDF.JS using its library to a site from another site within the same server?

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);
...
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resolved - a mix up in a variable took me to bad paths...

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!