A minimal cli tool written in Shell Script to convert normal pdf to dark pdf. darkpdf uses imagemagick to convert pdfs.
- Imagemagick
Download Imagemagick to use darkpdf:
- Using Brew:
brew install imagemagick
- Using dnf:
sudo dnf install ImageMagick
- Using apt:
sudo apt install imagemagick
- Clone the repo.
- cd into it.
- Copy the darkpdf script to a directory.
- Add the directory to $PATH environment variable.
git clone https://github.com/xunicatt/darkpdf.git
cp -r darkpdf $HOME
chmod u+x $HOME/darkpdf/darkpdf
#for bash
echo "export PATH=\$PATH:\$HOME/darkpdf" >> ~/.bashrc
source ~/.bashrc
#for zsh
echo "export PATH=\$PATH:\$HOME/darkpdf" >> ~/.zshrc
source ~/.zshrc
$ darkpdf hello.pdf
....
$ ls
hello.pdf hello_dark.pdf