| <<<Back 1 day (to 2016/02/27) | 20160228 |
cryptopsy | i wrote a script 5 years ago that prints a book by offsetting pages from a pdf left and right to better accomodate the binding. i have tihs line, which doesnt give output. Am wondering why, pages=`gs -1 -dNODISPLAY -c "($i) (r) file runpdfbegin pdfpagecount = quit"` | 21:27.25 |
| $i is the pdf | 21:27.34 |
| oh wait, nevermind, i was being blind | 21:28.04 |
| the ouput is more than the page number, can gs give me just the number, or do i have to grep for it? | 21:42.45 |
| -q does it | 21:43.16 |
| -1 doesn't do it | 21:43.36 |
| how can i silence output like : "GPL Ghostscript 9.15: Destination page 658 lies outside the valid page range. " , -q doesn't do it | 22:59.31 |
| command is 0 gs -q -sDEVICE=pdfwrite -o "$j".pdf -dFirstPage=$j -dLastPage=$j -dPDFSETTINGS=/prepress -c "<</PageOffset [-26 0]>> setpagedevice" -f source.pdf | 22:59.37 |
| perhaps not possible; http://bugs.ghostscript.com/show_bug.cgi?id=695600 | 23:03.51 |
| Forward 1 day (to 2016/02/29)>>> | |