After installing R-pdftools
with MacPorts (V2.8.1 on Sonoma) without any error messages I cannot find pdftools
in Terminal.
What's wrong?
After installing R-pdftools
with MacPorts (V2.8.1 on Sonoma) without any error messages I cannot find pdftools
in Terminal.
What's wrong?
You seem to have installed a package for R (a programming language) which lets R programmers manipulate PDF files. It doesn't look like you can call it directly from the terminal.
Usage instructions are here.
Here are a range of PDF-manipulating command line tools that can be installed directly:
XPDF tools
https://www.xpdfreader.com/download.html
PDFtk Server:
https://www.pdflabs.com/tools/pdftk-server/
GhostScript
You can of course use GhostScript to merge PDFs.
Binaries for Mac are here:
https://pages.uoregon.edu/koch/
If you're into python, there are various python libraries that will manipulate PDFs, such as pikePDF. https://github.com/pikepdf/pikepdf
You could create a workflow using Automator.app or Shortcuts.app, and call it from the CLI, using the shortcuts
or automator
commands.
I've also written a suite of python scripts that call macOS APIs to perform various PDF functions:
https://github.com/benwiggy/PDFsuite
(You'll need to install the pyobjc library.)
port search pdf | less
. A few appeared to be CLI without the R affiliation.pdftools
which I could install via pip but I think I should not mix all my Macport python installations with pip / homebrew, right?