Created
June 10, 2016 15:40
-
-
Save aphyr/afc3d5b41e32d785f4f19e511c6a75cf to your computer and use it in GitHub Desktop.
Script to sign the final page of a PDF using inkscape and pdfseparate/pdfunite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=`mktemp -dt pdf-sign.XXXXXXXX` || exit 1 | |
cd "$DIR" | |
pdfseparate "$1" "$DIR/page%d.pdf" | |
inkscape `ls | tail -1` | |
pdfunite page*.pdf "$1 signed.pdf" | |
rm -rf "$DIR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment