How to remove password for protected PDF files

Hi Team,
I have one issue plz try to solve this,

I have some PDF files in some of the PDF have protected how to remove from protection using Uipath.

@uday_kumar,

Its not possible to remove protection. Using start process open pdf file and check whether any pop-up is coming for password. If it is coming then use Element exist activity to indicate that screen and type password else continue with other steps.

@uday_kumar,

You will have to remove it from online sites like,
https://smallpdf.com/unlock-pdf\

you can explore more sites on google

Cheers,
Pankaj

Hi Pankaj,
Thanks for reply, It’s not possible to use unsecured sites because it’s for development.

Hi Lakshman,
Thanks for reply, is there any chance to use .net code ?

@uday_kumar,

One thing, you can do that save password in asset or window credential, read them, while you read pdf then you can supply password.

make sense?

Cheers,
Pankaj

@uday_kumar,

Yes, you can use and by using Invoke Code activity.
Are you using .net code for removing password protection ?

@uday_kumar
If you want to remove the password and save the pdf file outside of UiPath, then do this:

  1. Open the PDF File in Chrome - using the password of the PDF File
  2. Select Print Option
  3. Under Print Option, save the File as a PDF - give another name

This file will be saved without Password

Else you have use any pdf creater like nitro pdf.but its paid one.but it’s more secure and safe.

Hello Mahesh, I tried the same, but after opening file with chrome, if I send hotkey “Ctrl+P” it open windows print menu
image

Thanks for this information. It useful