Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda