
2 Feb
2017
2 Feb
'17
3:06 p.m.
It's not often I have to assemble larger numbered documents. I usually use this little script. enscript -L1 -F --header-font=Times-Roman12 -b '||$%' -o- < <(for i in $(seq "$(pdftk "$1" dump_data | grep "Num" | cut -d":" -f2)"); do echo; done) | ps2pdf - | pdftk "$1" multistamp - output "${1%.pdf}-numbered.pdf" I tried it on this .. Linux HECTOR 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux and got this .. seq: invalid floating point argument: 162 162 pages with no numbers. Could this be because the pdf's were generated in M$? Thanks in advance. Russell