Skip to content

Instantly share code, notes, and snippets.

@blurymind
Created November 19, 2022 14:45
Show Gist options
  • Save blurymind/6edfb9c144edbcd57e261719b231e5a7 to your computer and use it in GitHub Desktop.
Save blurymind/6edfb9c144edbcd57e261719b231e5a7 to your computer and use it in GitHub Desktop.
combinePdfs.sh
#!/bin/sh
# thunar file custom action /home/fox/INSTALL/combinePdfs.sh %F
# %F is full path to all selected files
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="${1%.pdf}-combined.pdf" "$@"
notify-send "created ${1%.pdf}-combined.pdf file"
##convert -density 200 "$@" final.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment