{"published":"2025-04-11 15:53:41","blog_title":"thirose\u2019s blog","author_name":"hirosetakahito","type":"rich","version":"1.0","width":"100%","image_url":null,"url":"https://hirosetakahito.hatenablog.com/entry/2025/04/11/155341","description":"\u6700\u8fd1\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u304b\u304b\u3063\u305fpdf\u30d5\u30a1\u30a4\u30eb\u3092\u3088\u304f\u53d7\u3051\u53d6\u308b\u306e\u3067\u3001pdf\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u524a\u9664\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u305f\u3002 import pypdf SRC_PDF = 'password.pdf' #\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fPDF DST_PDF = 'non_password.pdf' #\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u89e3\u9664\u3057\u305fPDF PASSWORD = '' #PDF\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 def delete_password(src_pdf, dst_pdf, src_password): src_pdf_file = pypdf.PdfReader(src_pdf) src_pdf_file.decrypt(src_passwo\u2026","author_url":"https://blog.hatena.ne.jp/hirosetakahito/","title":"PDF \u30d1\u30b9\u30ef\u30fc\u30c9\u89e3\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210","blog_url":"https://hirosetakahito.hatenablog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirosetakahito.hatenablog.com%2Fentry%2F2025%2F04%2F11%2F155341\" title=\"PDF \u30d1\u30b9\u30ef\u30fc\u30c9\u89e3\u9664\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210 - thirose\u2019s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python"]}