On Wed, 4 Aug 2021 17:00:00 +0200
"Dr. Nikolaus Klepp" <office(a)klepp.biz> wrote:
Anno domini 2021 Wed, 4 Aug 09:09:54 -0400
E. Liddell scripsit:
On Wed, 04 Aug 2021 12:04:16 +0200
deloptes <emanoil.kotsev(a)deloptes.org> wrote:
Dr. Nikolaus Klepp wrote:
Hi all!
Giving this PDF
https://www.farnell.com/datasheets/2304760.pdf kpdf
requires a password to open it while firefox does not.
Anybody knows the reason for this?
Nik
confirmed
Here kpdf requested access to kwallet - I rejected and it asked for passwd.
FF is not asking for passwd
perhaps strace to see what is happening?
For what it's worth, the file shows as encrypted (and slightly broken):
~ $ pdfinfo 2304760.pdf
Internal Error: xref num 27 not found but needed, try to reconstruct<0a>
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 8
Encrypted: yes (print:yes copy:no change:no addNotes:yes algorithm:AES-256)
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 1626771 bytes
Optimized: no
PDF version: 1.4
It might be that the original creators of kpdf didn't anticipate the possible
existence of encrypted files that weren't password-locked. Or it could be that
the file breakage is causing other problems.
Thanks for the hint, now I kind of solved it by uploading the PDF to
https://smallpdf.com
, let it remove the password and saving the result :)
But what I still don't understand: why was the preview in konqueror showing the first
page of the pdf? Does KPDF not use the same component to as konqueror?
No clue. I don't think the encryption/password system for PDFs is very strong,
though.
Poppler (the package that contains the pdfinfo command I used) can break it in order
to perform PDF conversions (without knowing the password), so other packages may
be able to do so as well.
E. Liddell