Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2020/07/14)Fwd 1 day (to 2020/07/16) >>>20200715 
Kobaz having a problem with gs14:45.00 
  gs -dNOPAUSE -dBATCH -sDEVICE=pnggray -r300 -dUseCropBox -sOutputFile="/tmp/newloa.pdf" /tmp/loa.pdf14:45.27 
  Cannot parse integer value ?-dBATCH? for -d14:45.33 
kens Where di you get Ghostscript from, what operating system are you using ?14:46.01 
Kobaz debian/buster14:46.16 
  apt-get install14:46.19 
  oh14:46.33 
  haha14:46.34 
  whoops14:46.36 
  gs --version14:46.40 
  gnome-screenshot 3.36.014:46.40 
  that might do it14:46.42 
kens Then I suggest you start by taking it up with the package maintainer14:46.46 
  The package maintainers make changes to Ghostscript and we cannot help with those14:47.02 
Kobaz /usr/bin/gs -dNOPAUSE -dBATCH -sDEVICE=pnggray -r300 -dUseCropBox -sOutputFile="/tmp/newloa.pdf" /tmp/loa.pdf14:47.09 
  that worked a bit better14:47.13 
kens Or you can get the source from our Git repository and build Ghostscrit yourself14:47.15 
  In what way better ?14:47.32 
Kobaz that it's actually running ghostscript, and not gnome-screenshot14:47.43 
  $ alias gs14: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 that14:47.59 
kens LOL14:48.14 
  Note you are using a PNG outptu devcie but you've given the outptu filename a .pdf extension14:48.56 
Kobaz er, right14:49.04 
  i was switching things around trying to make things works14:49.10 
  *work14:49.12 
kens Not necessarily a problem of course14:49.17 
Kobaz what i really wanted was pdf compression14:49.26 
  but little did i realize I wasn't actually working with ghostscript14: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 file14:50.23 
Kobaz gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf14:50.55 
  is some randomness fom the interwebs14: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 did14:51.30 
  You;d be better off selecting the features you want individually14:51.47 
  That one will downsample images aggressively and convert everything to RGB14:52.10 
Kobaz ah15:04.43 
  that's fine with me15: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 {== ==} forall19: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 values19: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 printer21:24.34 
  Also the timeout in the interactive shell of the printer is getting annoying21:25.54 
 <<<Back 1 day (to 2020/07/14)Forward 1 day (to 2020/07/16)>>> 
ghostscript.com #mupdf
Search: