To use pdfarranger on macOS, is suggested to use Nix, which already provides pdfarranger package.
If this is your first time using Nix on macOS, it's recommended to use Determinate Nix Installer. Just type this one-liner command in terminal:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Instead of Determinate Nix Installer, you can also use Official Nix Installer:
sh <(curl -L https://nixos.org/nix/install)
After installation, run nix-shell -p pdfarranger --run pdfarranger
in terminal to launch pdfarranger. Nix will download pdfarranger and its dependencies to /nix
.
You may consider set up nix-darwin.
If you want to run pdfarranger without nix, you can install dependencies manually (Homebrew / MacPort / etc.).
You'll need
After installation, set two environment variables:
GSETTINGS_SCHEMA_DIR
: The file$GSETTINGS_SCHEMA_DIR/org.gtk.Settings.FileChooser.gschema.xml
should exist.DYLD_LIBRARY_PATH
: The file$DYLD_LIBRARY_PATH/libintl.8.dylib
should exist.
Finally, you can run
./setup.py build
python3 -m pdfarranger