1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

古いPDFをLibreOffice Drawで開いたときに文字化けする対策

1
Posted at

前文

昔のWindows環境のexcelで作成したPDFをLibreOffice Drawで開いて編集しようとする時、文字化けで編集が出来ないことがある。
これはPDF中にフォント名指定をしている箇所がcp932(俗にいうMS Shift JIS)で記載されていてUTF8でフォント名が記載されていないことに起因する。

Acrobat readerで開くと当該PDFは閲覧することが出来る。これは変換する機構が実装されている。
LibreOffice Drawではcp932で記述されたフォント名をUTF8に変換する機構が実装されていない。

解決手順

  1. Acrobat readerでPDFを開き
  2. メニュー -> 印刷
  3. プリンタを "Microsoft print to PDF"として印刷を実行すると
  4. PDFファイルを新たに保存出来るのでそのファイルを今度はLibreOffice Drawで開く

"Microsoft print to PDF"によって当該実行環境で使えるUFF8で記述されたフォント名に置き換わるので存在しないフォント名で文字化けが発生していた状況が改善される。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?