AES 256 bit encrypted pdf file open error(PdfDocument API)

李 廷訓 6 Reputation points
2019-12-06T00:59:33.353+00:00

HI,
I am making a pdf viewer in a part of my program.
I'm trying to open PDF file by using PdfDocument API
It works fine in AES128 encrypt files or non-encrypted files,
but it fails to open AES256 bit password-encrypted file.

I have tried to open the aes256 pdf in edge and chrome browser,
edge failed, but chrome had no problem.

I think it is a problem of MS PdfDocument API.

Is there someone who had same problem or
someone who has solution?

need help.

thanks.

Universal Windows Platform (UWP)
{count} vote

2 answers

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2019-12-06T06:31:22.08+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    After confirmation, PdfDocument does not currently support AES-256 encrypted Pdf documents. You can try to make a Feature Request in the Feedback Hub, it can help your problem get more attention.

    Thanks

    0 comments No comments

  2. André Gonçalves 1 Reputation point
    2019-12-06T17:09:36.357+00:00

    Hi there.

    I'm also having the same problem. But in my case, both 256 or 128-bit encryption pdf crashes on Edge.

    Here you can see that the problem doesn't occur on Chrome.

    alt text