Forum Bugs

Password protection is not working with Microsoft Edge Browser on window 10.

aryas
Password protection is not working with Microsoft Edge Browser on window 10.

I have created the HTML to PDF successfully.

$objPrince = CPrinceFactory::createPrince();
$objPrince->setHTML( 1 );
$objPrince->setEncryptInfo( 40, $strPassword, '', false, true, true, false );
$objPrince->convert_string_to_file( $strHtmlContent, $strFilePath );


But whenever, I am trying to open with Microsoft Edge Browser on Windows 10, it's allowed to access the pdf file without asking password.


Can someone aware with this?
Please help me to sort out this issue
mikeday
Have you specified a non-empty string for the user password? Can you check the security tab in the document properties in Acrobat?
aryas
@mikeday
where I have to specify a non-empty string for the user password?
it's working for acrobat and chrome, but not working with Microsoft edge.

Edited by aryas

mikeday
You mean it prompts the user for a password in Acrobat and Chrome but they can simply press enter to access the PDF file?