Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
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 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!