In my understanding the authenticate method should decrypt my file and return true or false depending on if it was successful. The true value here indicates, that decryption was successful, but the doc itself seems unaltered, and extraction of the links shows, that is indeed the case.
Using a wrong password also correctly makes the authenticate method return false.
I'm really stuck here, and would be very grateful, if someone knows what the issue with my code is. I'd be happy to provide any additional information :)
Hello, I am very new to this crate and rust in general, so sorry in advance if this is a stupid question :smile:
I want to extract links from an encrypted pdf, but cannot seam to figure out how the authenticate-method works. Here is my test function:
In my understanding the authenticate method should decrypt my file and return true or false depending on if it was successful. The true value here indicates, that decryption was successful, but the doc itself seems unaltered, and extraction of the links shows, that is indeed the case.
Using a wrong password also correctly makes the authenticate method return false.
I'm really stuck here, and would be very grateful, if someone knows what the issue with my code is. I'd be happy to provide any additional information :)