Skip to main content
Participant
March 26, 2020
Question

89/5000 Open a pdf file with password in a webbrowser without typing the known password.

  • March 26, 2020
  • 1 reply
  • 905 views

Hi guys, I use VB.NET

I have a question to ask you!

I use iTextSharp library, with which I enter the password for each pdf file needed by my little project.

The number of pdf files increases for some actions / functions of the aforementioned project.

Passwords reside in a DB table, so they are known and known.

Now I ask, is it possible to open these pdf files from a code in a webbrowser (with a construct that contains the password), without having to enter it from time to time?

I use this code: WebBrowser1.navigate (path_e_namefile.pdf & #password: "xyz" #) but nothing happens.

All this in order to avoid that annoying password request when opening these files.

Obviously, if I manually enter the password, this pdf file is normally opened inside the webbrowser.

Could someone help me or give me directions on how to orient myself?

Thanks Infinte

CarloRaffaele

    This topic has been closed for replies.

    1 reply

    John T Smith
    Community Expert
    Community Expert
    March 26, 2020

    >I use VB.NET

     

    If that means you are not using an Adobe program, such as Acrobat or Reader, you need to ask in a forum for the product you are using

    Participant
    March 28, 2020

    AcrobatReaderDC

    Legend
    March 28, 2020

    Reader has no COM API that allows a password to be used for either local or web files.