Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -- set up repos
- brew install Caskroom/cask/xquartz
- # -- install xpdf
- brew install xpdf
- # -- download japanese package
- wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-japanese.tar.gz
- # -- open
- tar -xzvf xpdf-japanese.tar.gz
- # -- make required directory
- mkdir /usr/local/share/xpdf
- mkdir /usr/local/share/xpdf/japanese
- # -- copy over the japanese files
- cp -r xpdf-japanese/ /usr/local/share/xpdf/japanese
- # -- check location of xpdf
- brew ls xpdf
- # -- copy over contents of add-to-xpdfrc to xpdfrc
- cat xpdf-japanese/add-to-xpdfrc >> /usr/local/Cellar/xpdf/3.04_1/etc/xpdfrc
- # -- now test with a pdf with Japanese
- pdftotext random.pdf random.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement