
On Feb 7, 2017 4:48 PM, "Stewart C. Russell via talk" <talk@gtalug.org> wrote:
On 2017-02-06 01:36 PM, Russell Reiter wrote:
I had to resort to analogue to get the docs out. You remember, print the numbers on the pages, then run them through for the data.
Ah, that's annoying.
Your script does seem to be a variant of this, which seems to work:
#!/bin/bash # from http://stackoverflow.com/a/9033109/377125 input="$1" output="${1%.pdf}-header.pdf" pagenum=$(pdftk "$input" dump_data | grep "NumberOfPages" | cut -d":" -f2) enscript -L1 --header='||Page $% of $=' --output - < <(for i in $(seq "$pagenum"); do echo; done) | ps2pdf - | pdftk "$input" multistamp - output $output
Hey. It didn't work the first time but I joined the lines into one bullet and it did. Go figure that one?! I don't know what I find to be more cryptic, shaking hands with a mason, or bash quoting and syntax. I still have to figure out how to led the stamp baseline so it doesn't bork the original doc header text but I'm much closer to being where I was. Thanks Russell
Stewart --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk