Skip to content

xunicatt/darkpdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

darkpdf

A minimal cli tool written in Shell Script to convert normal pdf to dark pdf. darkpdf uses imagemagick to convert pdfs.

Dependencies

  • Imagemagick

Download Imagemagick to use darkpdf:

Download

  • Using Brew:
brew install imagemagick
  • Using dnf:
sudo dnf install ImageMagick
  • Using apt:
sudo apt install imagemagick

Install

  1. Clone the repo.
  2. cd into it.
  3. Copy the darkpdf script to a directory.
  4. 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

Add to path:

#for bash
echo "export PATH=\$PATH:\$HOME/darkpdf" >> ~/.bashrc
source ~/.bashrc

#for zsh
echo "export PATH=\$PATH:\$HOME/darkpdf" >> ~/.zshrc
source ~/.zshrc

Usage

$ darkpdf hello.pdf
....
$ ls
hello.pdf hello_dark.pdf

About

CLI tool to convert pdf into dark pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published