| <<<Back 1 day (to 2020/07/14) | Fwd 1 day (to 2020/07/16) >>> | 20200715 |
Kobaz | having a problem with gs | 14:45.00 |
| gs -dNOPAUSE -dBATCH -sDEVICE=pnggray -r300 -dUseCropBox -sOutputFile="/tmp/newloa.pdf" /tmp/loa.pdf | 14:45.27 |
| Cannot parse integer value ?-dBATCH? for -d | 14:45.33 |
kens | Where di you get Ghostscript from, what operating system are you using ? | 14:46.01 |
Kobaz | debian/buster | 14:46.16 |
| apt-get install | 14:46.19 |
| oh | 14:46.33 |
| haha | 14:46.34 |
| whoops | 14:46.36 |
| gs --version | 14:46.40 |
| gnome-screenshot 3.36.0 | 14:46.40 |
| that might do it | 14:46.42 |
kens | Then I suggest you start by taking it up with the package maintainer | 14:46.46 |
| The package maintainers make changes to Ghostscript and we cannot help with those | 14:47.02 |
Kobaz | /usr/bin/gs -dNOPAUSE -dBATCH -sDEVICE=pnggray -r300 -dUseCropBox -sOutputFile="/tmp/newloa.pdf" /tmp/loa.pdf | 14:47.09 |
| that worked a bit better | 14:47.13 |
kens | Or you can get the source from our Git repository and build Ghostscrit yourself | 14:47.15 |
| In what way better ? | 14:47.32 |
Kobaz | that it's actually running ghostscript, and not gnome-screenshot | 14:47.43 |
| $ alias gs | 14:47.54 |
| alias gs='gnome-screenshot -i' | 14:47.54 |
chrisl | Kobaz: gnome-screenshot is *also* using the binary name "gs"? Can I ask you to report that upstream please? It will mean more coming from a user (as well as from us) | 14:47.57 |
Kobaz | i forgot i had that | 14:47.59 |
kens | LOL | 14:48.14 |
| Note you are using a PNG outptu devcie but you've given the outptu filename a .pdf extension | 14:48.56 |
Kobaz | er, right | 14:49.04 |
| i was switching things around trying to make things works | 14:49.10 |
| *work | 14:49.12 |
kens | Not necessarily a problem of course | 14:49.17 |
Kobaz | what i really wanted was pdf compression | 14:49.26 |
| but little did i realize I wasn't actually working with ghostscript | 14:49.48 |
kens | Ghostscript's pdfwrite doesn't do 'PDF compression' | 14:49.52 |
| The PDF file it produces may be smaller, especially if you use lossy techniques such as downsampling images, but that's not quite the same thing as 'compressing' a PDF file | 14:50.23 |
Kobaz | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf | 14:50.55 |
| is some randomness fom the interwebs | 14:51.19 |
kens | Well PDFSETTINGS bundles a whole host of settings. I hate it and woudl remove it in a trice if only people wouldn't bitch at me if I did | 14:51.30 |
| You;d be better off selecting the features you want individually | 14:51.47 |
| That one will downsample images aggressively and convert everything to RGB | 14:52.10 |
Kobaz | ah | 15:04.43 |
| that's fine with me | 15:04.56 |
kens | OK well if it does anything you don't like you'll have to switch to individual parameters; just as long as you're aware :-) | 15:07.56 |
quitte | Hi. Is this channel somewhat active? I'm trying to learn some postscript in the hopes of fixing the way my printers select paper. | 19:21.33 |
| I'd like to access the InputAttributes dictionary. | 19:24.49 |
| Hmm. I think I may have got it: currentpagedevice begin InputAttributes {== ==} forall | 19:32.20 |
| If I understand this correctly it does: put the currentpagedevice dict on the dictionary stack put a the InputAttributes dictionary pointer on the command stack and then prints its keys and values | 19:33.50 |
| I bet I can, but I'd be glad for any pointers: can I load my printers dictionaries into Ghostscript? How? It would be nice if I didn't need a VPN while on the road and instead use Ghostscript as an emulator of my printer | 21:24.34 |
| Also the timeout in the interactive shell of the printer is getting annoying | 21:25.54 |
| <<<Back 1 day (to 2020/07/14) | Forward 1 day (to 2020/07/16)>>> | |