4

I installed pdfinfo with Homebrew Cask:

brew cask install pdfinfo

It's successfully installed. But it's not activated as a command in the shell:

> pdfinfo
-bash: pdfinfo: command not found

What I don't understand is that I did the exact same procedure with pdftotext (installed with Homebrew Cask), and it works fine:

> brew cask install pdftotext
(...)
> pdftotext
pdftotext version 3.03
Copyright 1996-2011 Glyph & Cog, LLC
...
4

The pdfinfo command line tool is part of the xpdf package:

brew install xpdf

This package installs many things, including pdfinfo.

1

this will install an app not a shell command

==> Downloading http://www.sybrex.com/download/macgui/files/pdfinfo/PDFInfo.dmg

################################################################## 100.0%

==> Symlinking App 'PDFInfo.app' to '/Users/XYZ/Applications/PDFInfo.app' 🍺 pdfinfo staged at '/opt/homebrew-cask/Caskroom/pdfinfo/latest' (10 files, 1.8M)

1

The homebrew/x11 was deprecated. xpdf is enough to work:

$ brew install xpdf

Or we can check the package before installing by:

$ brew search xpdf
==> Searching local taps...
xpdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.