<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirosetakahito</author_name>
  <author_url>https://blog.hatena.ne.jp/hirosetakahito/</author_url>
  <blog_title>thirose’s blog</blog_title>
  <blog_url>https://hirosetakahito.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>最近パスワードのかかったpdfファイルをよく受け取るので、pdfのパスワードを削除するスクリプトを書いた。 import pypdf SRC_PDF = 'password.pdf' #パスワードがかかったPDF DST_PDF = 'non_password.pdf' #パスワードを解除したPDF PASSWORD = '' #PDFのパスワード def delete_password(src_pdf, dst_pdf, src_password): src_pdf_file = pypdf.PdfReader(src_pdf) src_pdf_file.decrypt(src_passwo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirosetakahito.hatenablog.com%2Fentry%2F2025%2F04%2F11%2F155341&quot; title=&quot;PDF パスワード解除スクリプトの作成 - thirose’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-11 15:53:41</published>
  <title>PDF パスワード解除スクリプトの作成</title>
  <type>rich</type>
  <url>https://hirosetakahito.hatenablog.com/entry/2025/04/11/155341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
