Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
13
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@zanyou

xpdfをインストールする

これは

PDF操作ツールであるxpdfのインストール方法.
いくつかのサイトでbrew install xpdfでインストールできるって書いてありますがError: No available formula for xpdfって怒られる.

どうするのか

コマンド2つ

brew install Caskroom/cask/xquartz
brew install homebrew/x11/xpdf

日本語対応

Language Support Packagesの xpdf-japanese.tar.gzをダウンロードして,解凍した中身を/usr/local/share/xpdf/japaneseに置く.
あと,/usr/local/etc/xpdfrcを以下のように編集.

# コメントアウト解除
textEncoding UTF-8

# 追記
cidToUnicode    Adobe-Japan1    /usr/local/share/xpdf/japanese/Adobe-Japan1.cidToUnicode
unicodeMap  ISO-2022-JP /usr/local/share/xpdf/japanese/ISO-2022-JP.unicodeMap
unicodeMap  EUC-JP      /usr/local/share/xpdf/japanese/EUC-JP.unicodeMap
unicodeMap  Shift-JIS   /usr/local/share/xpdf/japanese/Shift-JIS.unicodeMap
cMapDir     Adobe-Japan1    /usr/local/share/xpdf/japanese/CMap
toUnicodeDir            /usr/local/share/xpdf/japanese/CMap

参考

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
13
Help us understand the problem. What are the problem?