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

270
Vistas
PDFTron Webviewer Open PDF with a user password

I am trying to use the PDFTron WebViewer within a Blazor application to open a PDF with a user password.

I would like to do this without a user dialog but I am can't figure out how to.

I am calling the initWebView function with the url path to the passworded pdf. This downloads the document and displays a prompt to enter the password. I am able to enter the password manually and the document opens successfully. However, I would like to bypass this prompt by supplying the password as an argument, thus opening the passworded document without any intervention from the user.

var wvInstance;

window.webviewerFunctions = {
    initWebViewer: function (url) {
        const viewerElement = document.getElementById('viewer');
        WebViewer({
            path: 'lib',
            initialDoc: url,
            fullAPI: true
        }, viewerElement).then(instance => {
            wvInstance = instance;
        })
    }
}

Thanks for taking the time to help.

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

0

You can try using the DocumentViewer#loadDocument API with the password option I think.

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