diff options
author | Kleidi Bujari <mail@4kb.net> | 2024-10-04 16:49:34 -0400 |
---|---|---|
committer | Kleidi Bujari <mail@4kb.net> | 2024-10-04 16:49:34 -0400 |
commit | af7e104f7965da593250567e3356d7a40bbe703d (patch) | |
tree | 6cac9ff9228fe74728ee62d486a8c036b63b363c /renderpdf | |
parent | 6cf8b9a931fbc98a1de251dd63ed4a3d88abce8b (diff) | |
download | bin-af7e104f7965da593250567e3356d7a40bbe703d.tar.gz bin-af7e104f7965da593250567e3356d7a40bbe703d.tar.bz2 bin-af7e104f7965da593250567e3356d7a40bbe703d.zip |
Diffstat (limited to 'renderpdf')
-rwxr-xr-x | renderpdf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/renderpdf b/renderpdf new file mode 100755 index 0000000..f30bdbf --- /dev/null +++ b/renderpdf @@ -0,0 +1,9 @@ +#!/bin/bash +# +# View document as rendered PDF + +if [[ $1 == *.pdf ]]; then + zathura --fork "$1" +else + pandoc -tpdf -o- "$1" | zathura --fork - +fi |