| <<<Back 1 day (to 2019/11/12) | Fwd 1 day (to 2019/11/14) >>> | 20191113 |
_abc_ | Hello. Are psutils questions off topic here? | 12:16.18 |
| I would like to know if it is normal for psselect -p1-2 to copy out the entire unmodified input pdf (!) file, instead of selecting pages from it. I was under the impression it should select pages and accept pdf input tacitly. Wrong? | 12:17.07 |
chrisl | _abc_: Sorry, no idea. psutils is nothing to do with us | 12:18.59 |
_abc_ | Ok. I found pdfseparate which seems to do it in roundabout ways. psselect uses gs, it is a script. Thanks for the info. | 12:19.30 |
chrisl | _abc_: You could just use gs directly | 12:19.51 |
_abc_ | In theory yes. | 12:23.08 |
| In practice I am not good with cli options for gs, psselect provides the chusion for that. | 12:23.34 |
| If you have an example link using page ranges it would be useful, thanks. | 12:23.51 |
chrisl | You'd do something like "-sDEVICE=pdfwrite -sPageList=1,3,5 -o output.pdf input.pdf" | 12:25.05 |
| PageList is documented here: https://ghostscript.com/doc/9.27/Use.htm (search for PageList) | 12:25.48 |
| _abc_: I suspec that the psselect utility has not been updated in a *long* time, and PageList is a relatively new feature | 12:27.21 |
| _abc_: Another option (and possibly a better one) would be mupdf's mutool: https://mupdf.com/docs/manual-mutool-clean.html | 12:28.31 |
_abc_ | Thanks. I solved the problem using pdfseparate and a bash script. I will study your links for next time and maybe fix psselect. | 13:17.52 |
ZeroWalker | so, is this channel about ps intepretation etc? | 17:00.58 |
NancyDurgin | it's for ghostscript, yes | 17:16.53 |
ZeroWalker | well i kinda want to learn ps, or at least know about it to see if it's possible to learn, because i would like to make a file that looks like a docx template i have, where i can just replace some stuff (text) and just feed it to the printer directly so it can be printed. | 18:20.05 |
| But i am not sure how text is handled in ps, if it can be written in a way where it can be replaced, or if it's written in a way where you just specify pixels or something | 18:20.36 |
| <<<Back 1 day (to 2019/11/12) | Forward 1 day (to 2019/11/14)>>> | |