0

I am using c# SelectPdf library to create a password protected pdf file. Is it possible to change the text the user sees when he is trying to open the file?

The default text is something like: "this file is password protected. please provide a password."

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
oshi oshi
  • 69
  • 7

1 Answers1

2

The dialog that is displayed when you open a password protected file is going to be controlled by the application displaying it, and not the file itself. The application will simply check to see if it is password protected and present it's dialog to open, therefore the text displayed is controlled by the application and you will be unable to change it.

ChrisBint
  • 12,773
  • 6
  • 40
  • 62
  • The default text is something like: "this file is password protected. please provide a password." can I change it by code? – oshi oshi Jul 26 '17 at 08:59
  • As above, I would say not possible. Unless there was a specific property in the PDF specification to manage that, you cannot change what the parent application will say. – ChrisBint Jul 26 '17 at 09:42