SUMMARY It would be handy to use OpenPGP certificate to sign a PDF document. Why ? Because Kmail creates automatically an OpenPGP certificate to sign the email when creating an account. LibreOffice can use the OpenPGP certificates created by Kmail. Thanks
Hi This is not specified in the pdf specification, so it would be a purely okular-to-okular feature. While it probably wouldn't be many man weeks of work to implement something that works, given it is not actually specified in the pdf spec, I don't think it is useful.
Ok In this case, it would be a good thing that Okular, at the first opening, creates automatically an S/MIME OpenPGP certificate with Kleopatra.
(In reply to Philippe ROUBACH from comment #2) > In this case, it would be a good thing that Okular, at the first opening, > creates automatically an S/MIME OpenPGP certificate with Kleopatra. In general, S/Mime (x509) certificates needs to be authorized/notarized by a 3rd party (not unlike how browser https security works), so just generating something is not going to be useful in the long run. For example, in certain countries, you can get a governmental issued certificate with a government organization as trust anchor.
We're not going to do that. An okular only feature is not useful, and a self signed certificate is not useful. For that level of not actual cryptographically-valid signature you can as well just add a stamp annotation with your signature as an image and call it signed, that's what most people want anyway ¯\_(ツ)_/¯
Git commit 0e338c4f52de264a6ca69fd345ea82dc3bcfeece by Sune Vuorela. Committed on 06/03/2025 at 13:17. Pushed by sune into branch 'master'. Pgp signatures in pdf files Add a setting to ask poppler to enable pgp signatures in pdf files - also put in a notice-messagebox when enabling it saying it only works between certain okular's Create filtering in signature list to only show pgp signatures, and mark pgp keys in certificate list M +11 -0 core/signatureutils.cpp M +20 -0 core/signatureutils.h M +5 -0 generators/poppler/conf/pdfsettings.kcfg M +10 -0 generators/poppler/conf/pdfsettingswidget.ui M +3 -0 generators/poppler/generator_pdf.cpp M +22 -0 generators/poppler/pdfsettingswidget.cpp M +18 -0 generators/poppler/pdfsignatureutils.cpp M +7 -0 part/selectcertificatedialog.ui M +12 -0 part/signaturepartutils.cpp M +1 -1 part/signaturepartutilsmodel.h M +9 -1 part/signingcertificatelistmodel.cpp https://invent.kde.org/graphics/okular/-/commit/0e338c4f52de264a6ca69fd345ea82dc3bcfeece
Thanks