On Feb 8, 2017 5:48 AM, "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
Thanks, I'll try that out next time. Fooling around with Gimp layers shows some promising results, but that's all GUI. It's not quite the magic bullet I had going for me before. Cheers Russell
Stewart --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk