Bug 503852 - No support for password protected PDFs
Summary: No support for password protected PDFs
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: 25.04.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-06 15:38 UTC by idwsrqklej
Modified: 2025-05-24 10:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Password protected PDF (2.21 MB, application/pdf)
2025-05-06 16:19 UTC, idwsrqklej
Details

Note You need to log in before you can comment on or make changes to this bug.
Description idwsrqklej 2025-05-06 15:38:43 UTC
SUMMARY
Okular has no support for password protected PDFs, at least the ones that I've tested. They open when with no issues in other softwares.

STEPS TO REPRODUCE
1.  Open a password protected PDF with okular.

OBSERVED RESULT
"Couldn't open the file: blablabla\file.pdf"

EXPECTED RESULT
okular should ask for the password.

SOFTWARE/OS VERSIONS
Windows: 11
Comment 1 Albert Astals Cid 2025-05-06 15:54:03 UTC
Okular has support for password protected PDFs.

If you have one that does not work you will have to share it with us.
Comment 2 idwsrqklej 2025-05-06 16:19:38 UTC
Created attachment 181000 [details]
Password protected PDF

Password: prg
Comment 3 idwsrqklej 2025-05-06 16:20:20 UTC
(In reply to Albert Astals Cid from comment #1)
> Okular has support for password protected PDFs.
> 
> If you have one that does not work you will have to share it with us.

Attached the PDF.
Comment 4 Albert Astals Cid 2025-05-06 20:18:07 UTC
Works for me

https://imgur.com/nkNMDXb

https://imgur.com/x9Tpeo3

You say you are running Okular 25.04.0, is that right? Where did you install that from?
Comment 5 idwsrqklej 2025-05-07 11:33:22 UTC
(In reply to Albert Astals Cid from comment #4)
> Works for me
> 
> https://imgur.com/nkNMDXb
> 
> https://imgur.com/x9Tpeo3
> 
> You say you are running Okular 25.04.0, is that right? Where did you install
> that from?

Yes, from winget. Weird.
Comment 6 Bug Janitor Service 2025-05-18 22:01:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1171
Comment 7 Albert Astals Cid 2025-05-23 07:30:28 UTC
Git commit 699498a661c5b3e74256b557dc47664685ab049c by Albert Astals Cid.
Committed on 23/05/2025 at 07:21.
Pushed by aacid into branch 'master'.

Fix opening password protected files on builds without kwallet

M  +15   -4    part/part.cpp

https://invent.kde.org/graphics/okular/-/commit/699498a661c5b3e74256b557dc47664685ab049c
Comment 8 Albert Astals Cid 2025-05-24 10:45:07 UTC
Git commit fd87efaa554ecc9de96010fb9f9dafacb5568d05 by Albert Astals Cid.
Committed on 24/05/2025 at 10:45.
Pushed by aacid into branch 'release/25.04'.

Fix opening password protected files on builds without kwallet
(cherry picked from commit 699498a661c5b3e74256b557dc47664685ab049c)

M  +15   -4    part/part.cpp

https://invent.kde.org/graphics/okular/-/commit/fd87efaa554ecc9de96010fb9f9dafacb5568d05