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

165
Vistas
pdf.js change path of library in example given

I am using pdf.js library in a js page and it works fine. However I want to know if it is possible to change the path of the library using other method instead of:

var url = 'something/helloworld.pdf';
var pdfjsLib = window['pdfjs-dist/build/pdf']; <- How can I change this to a relative/absolute path?

// Asynchronous download of PDF
var loadingTask = pdfjsLib.getDocument(url);
loadingTask.promise.then(function(pdf) {
  console.log('PDF loaded');

...

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Resolved - https://github.com/mozilla/pdf.js/blob/master/examples/learning/helloworld.html

A wrong variable name was also delaying my effort.

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