Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
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 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda