{"id":22144,"date":"2026-01-07T12:10:37","date_gmt":"2026-01-07T11:10:37","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=22144"},"modified":"2026-01-07T12:15:22","modified_gmt":"2026-01-07T11:15:22","slug":"pdf-dateien-mit-qpdf-verschluesseln-und-entschluesseln","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2026\/01\/07\/pdf-dateien-mit-qpdf-verschluesseln-und-entschluesseln\/","title":{"rendered":"PDF-Dateien mit qpdf verschl\u00fcsseln und entschl\u00fcsseln"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>qpdf<\/strong> ist ein vielseitiges Kommandozeilen-Tool f\u00fcr strukturelle PDF-Transformationen ohne Inhaltsver\u00e4nderung. So lassen sich damit u.a. PDF-Dateien verschl\u00fcsseln oder auch entschl\u00fcsseln. <br>Die Anwendung erfolgt ausschlie\u00dflich im Terminal.<br>Die Originaldatei bleibt unver\u00e4ndert \u2013 es wird eine neue Datei erstellt.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Installation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Voraussetzung ist ein installiertes qpdf. Das Tool sollte nahezu in allen Distributionen in deren Repos verf\u00fcgbar sein und wird &#8211; falls noch nicht geschehen &#8211; z.B. auf unter Debian, Ubuntu und Linux Mint mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install qpdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">installiert.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Anleitung<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Benutzerpasswort (user-password)<br>Erforderlich zum \u00d6ffnen der PDF in jedem Reader. Ohne dieses ist ein Zugriff unm\u00f6glich.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Verschl\u00fcsselungsst\u00e4rke<br>40 (schwach), 128 (mittel) oder 256 Bit (stark, empfohlen).<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Nachtr\u00e4gliches verschl\u00fcsseln<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00d6ffnen Sie ein Terminal und navigieren zur entsprechenden PDF-Datei (cd \/pfad\/zur\/datei).<br>Im Beispiel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd Dokumente<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Korrekte Syntax <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qpdf --encrypt \"BENUTZERPASSWORT\" \"BESITZERPASSWORT\" 256 -- input.pdf output.pdf\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">BENUTZERPASSWORT durch das gew\u00fcnschte \u00d6ffnungspasswort ersetzen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">BESITZERPASSWORT &#8211; kann das gleiche Passwort wie das BENUTZERPASSWORT sein.<br>Die Rechteverwaltung ist entbehrlich &#8211; der Kopierschutz relativ schwach: <br>Moderne Reader ignorieren oftmals Flags, Screenshot und OCR umgehen praktisch alles.<br>Ein Passwort muss aber trotz alledem gesetzt werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Beispiel: <br>qpdf &#8211;encrypt &#8222;geheim123&#8220; &#8222;geheim123&#8220; 256 &#8212; input.pdf output.pdf<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Zur Veranschaulichung<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unter Dokumente im <em>home<\/em>-Bereich befindet sich die PDF-Datei <em>input.pdf<\/em> die nachtr\u00e4glich verschl\u00fcsselt werden soll&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1-1024x623.png\" alt=\"\" class=\"wp-image-22154\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1-1024x623.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1-150x91.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1-300x183.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1-768x467.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_1.png 1178w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Der Befehl dazu lautet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qpdf --encrypt \"geheim123\" \"geheim123\" 256 -- input.pdf output.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Am besten vergeben Sie f\u00fcr die Ausgabe-Datei einen passenden neuen Dateinamen&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2-1024x623.png\" alt=\"\" class=\"wp-image-22155\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2-1024x623.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2-150x91.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2-300x183.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2-768x467.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_2.png 1178w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Zum \u00d6ffnen der Datei ist nun das vorher bestimmte Passwort erforderlich, i.B. <em>geheim123<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"308\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_3.png\" alt=\"\" class=\"wp-image-22152\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_3.png 960w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_3-150x48.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_3-300x96.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_3-768x246.png 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Bei falschem Passwort wird der Zugriff verweigert&#8230; <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-1024x554.png\" alt=\"\" class=\"wp-image-22157\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-1024x554.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-1536x831.png 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-150x81.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-300x162.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4-768x416.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_4.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Passwortschutz entfernen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Der Passwortschutz kann mit qpdf entfernt werden, wenn das Passwort bekannt ist.<br>Navigieren Sie dazu in den Ordner, in dem sich die entsprechende PDF-Datei befindet und f\u00fcgen folgenden Befehl ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qpdf --password=\"geheim123\" --decrypt verschluesselt.pdf entschluesselt.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Angepasst an das vorliegende Beispiel lautet der Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qpdf --password=\"geheim123\" --decrypt output.pdf entschluesselt.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Das entschl\u00fcsselte PDF-Dokument wurde erstellt und kann nun ohne Passwortabfrage ge\u00f6ffnet werden&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5-1024x623.png\" alt=\"\" class=\"wp-image-22158\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5-1024x623.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5-150x91.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5-300x183.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5-768x467.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/01\/qpdf_5.png 1178w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Fazit<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">qpdf bietet einen zuverl\u00e4ssigen \u00d6ffnungsschutz f\u00fcr PDFs. Es verschl\u00fcsselt zuverl\u00e4ssig mit AES-256 und sch\u00fctzt das \u00d6ffnen in allen Standard-PDF-Readern perfekt. <br>Die Rechteverwaltung (Druckverbot, Kopierschutz) ist jedoch entbehrlich. Moderne Browser und Reader ignorieren diese Flags oft &#8211; Screenshots in Verbindung mit OCR-Tools umgehen jeden Kopierschutz m\u00fchelos.<br>Die Entschl\u00fcsselung gelingt ebenso einfach, wodurch die PDF komplett Passwort-frei wird.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Anmerkung<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die hier verwendeten Passw\u00f6rter dienen nur der Veranschaulichung.<br>Vergeben Sie grunds\u00e4tzlich sichere Passw\u00f6rter, die nicht leicht nachvollziehbar sind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">qpdf bietet wesentlich mehr Funktionen als hier vorgestellt. Einen \u00dcberblick dazu finden Sie <a href=\"https:\/\/qpdf.readthedocs.io\/en\/stable\/\" data-type=\"link\" data-id=\"https:\/\/qpdf.readthedocs.io\/en\/stable\/\">hier<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Titelbild: <a href=\"http:\/\/www.freepik.com\">Designed by Freepik<\/a><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"22144\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">10    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"22144\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>qpdf ist ein vielseitiges Kommandozeilen-Tool f\u00fcr strukturelle PDF-Transformationen ohne Inhaltsver\u00e4nderung. So lassen sich damit u.a. PDF-Dateien verschl\u00fcsseln oder auch entschl\u00fcsseln. Die Anwendung erfolgt ausschlie\u00dflich im Terminal.Die Originaldatei bleibt unver\u00e4ndert \u2013 es wird eine neue Datei erstellt. Installation Voraussetzung ist ein installiertes qpdf. Das Tool sollte nahezu in allen Distributionen in deren Repos verf\u00fcgbar sein und [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":22160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[654,72,421],"tags":[1489,1488,825],"class_list":["post-22144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pdf","category-sicherheit","category-verschluesselung","tag-entschluesseln","tag-qpdf","tag-verschluesseln"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=22144"}],"version-history":[{"count":11,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22144\/revisions"}],"predecessor-version":[{"id":22378,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22144\/revisions\/22378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/22160"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=22144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=22144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=22144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}