ngx-extended-pdf-viewer: PDFLinkService.navigateTo: "null" is not a valid destination array

Hello

I followed your installation guide and tried to use this lib in our project. Everything is working fine so far, except for a single error in the console when the pdf viewer is launched for the first time: PDFLinkService.navigateTo: "null" is not a valid destination array, for dest="/xxx" (xxx is the angular router link of the current component). I could not find anything in the doc regarding this error. Do you have an idea what could be the problem? Also, pdf.js warns about the missing default worker Warning: Setting up fake worker. As far as I know, this warning only appears when the default pdf directory is missing?

Thanks in advance

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 36 (20 by maintainers)

Commits related to this issue

Most upvoted comments

si pues tendria que tener un PDF x defecto para poder limpiarlo entonces, y los pasos son asi:

  1. cargo un pdf con nombre test.pdf
  2. le doy limpiar ( en este momento lo hace)
  3. vuelvo a cargar test.pdf solo para efectos de prueba y en ese momento ya no lo hace
  4. entonces digo cargo otro pdf con otro nombre totalmente diferente y lo carga
  5. vuelvo a limpiar y alli otra vez ya no lo hace

Te coloqué un video para que veas https://github.com/luis-cosillo/testPDF/blob/main/ejemplos/2022-02-09_16-50-35.mp4

Este es el link https://github.com/luis-cosillo/testPDF.git, allí te cree el proyecto, básicamente lo que hice agarre el mismo template para que sea lo más parecido al proyecto en el que estoy trabajando. Muchas gracias siempre por el apoyo.

voy a crearla y te paso el link para que lo puedas descargar