diff options
author | EuAndreh <eu@euandre.org> | 2023-04-15 12:03:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-15 12:03:46 -0300 |
commit | 8367de2b74ea4eb687666b21b9d5e7b4b196113b (patch) | |
tree | 62f15fdbcfc2c5232ad0b27994f2bf6f8ed5ad7d | |
parent | bin/print: Only call lpoptions(1) after -h has been processed (diff) | |
download | dotfiles-8367de2b74ea4eb687666b21b9d5e7b4b196113b.tar.gz dotfiles-8367de2b74ea4eb687666b21b9d5e7b4b196113b.tar.xz |
bin/print: Replace pdftk with qpdf
-rwxr-xr-x | bin/print | 6 | ||||
-rw-r--r-- | etc/guix/home.scm | 1 |
2 files changed, 4 insertions, 3 deletions
@@ -49,7 +49,7 @@ help() { } n_pages() { - pdftk "$1" dump_data | awk '/NumberOfPages/ { print $2 }' + qpdf "$1" --show-npages } main() { @@ -73,8 +73,8 @@ main() { return fi - pdftk A=in.pdf cat Aodd output odd.pdf - pdftk A=in.pdf cat Aeven output even.pdf + qpdf in.pdf --pages . 1-z:odd -- odd.pdf + qpdf in.pdf --pages . 1-z:even -- even.pdf NODD="$(n_pages odd.pdf)" NEVEN="$(n_pages even.pdf)" diff --git a/etc/guix/home.scm b/etc/guix/home.scm index 2094264..8b8c85c 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -467,6 +467,7 @@ left it off the last time it was used.") mdpo gron reptyr + qpdf xpdf ;; pdftk perf-tools |