IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2014/01/24)2014/01/25 
marcosw robin_watts_mac: you're up late (or do you have a crontab that periodically submits cluster jobs late at night :-) )00:18.30 
Topy44 hi05:37.43 
  i am working on a python application that uses ghostscript to render an image from a pdf05:38.03 
  (python 2.7, GTK3)05:38.41 
  and i am trying to figure out how exactly to get anything but a file or stdout from ghostscript through its python bindings05:39.30 
  also, i was wondering if there is any way to turn off dithering (just use a threshhold) for output05:40.00 
  i am currently rendering to a temporary png and then loading that again, but thats obviously inelegant and inefficient05:40.40 
  anything i can turn into a PIL image or a gdk pixbuf or drawable would be perfect05:42.30 
robin_watts_mac marcosw: I kicked it off before going to bed :)13:23.27 
  bbs.15:42.59 
kens For palfvin and the logs. Ghostscript is perfectly capable of rotating to non-orthogonal values, when altering the CTM as shown in the sample command line. However, whenprocessing PDF files the PDF interpreter calls setpagedevice to set the media to the size of the page MediaBox (among other things). THIs implicitly calls initgraphics which resets teh CTM. See ther SO question raised by palfvin for more details:18:06.51 
  http://stackoverflow.com/questions/21343626/configuring-ghostscript-to-rotate-page-output-other-than-multiple-of-90-degrees18:06.51 
  Toppy44 Ghostscript doesn't have any Python bindings,so if you are using some they must come from somewhere else. GS is a command line driven application written in C. You can certainly have GS write to a pipe, or you can write a device to deal with the raster memory directly. The 'dithering' is generated normally by a threshold array, so you can replace the default with your own array, you can simply use one where there is only18:12.38 
  'on' or 'off. Or you can use a transfer function.18:12.38 
  I should mention that the GS library can also be a shared object/DLL as well of course.18:13.03 
Topy44 well, i came too late to answer to kens, but:22:21.38 
  yeah, there are python bindings, they are just not "official" (as in, by the ghostscript developers)22:21.57 
  and yeah, i did find a way to get data through a pipe22:22.13 
  (though i couldn't get that to work on windows, but thats not really a ghostscript problem. it works fine on linux.)22:23.35 
robin_watts_mac henrys: ping?22:55.51 
henrys hi robin_watts_mac 22:56.10 
robin_watts_mac hi. I think I confused miles.22:56.24 
henrys robin_watts_mac: hope all is well family wise22:56.32 
robin_watts_mac Yeah, pretty much as good as you could hope for.22:56.50 
henrys robin_watts_mac: I think you're reporting is excellent it is just tricky to get things straight when technical meets business22:58.12 
 Forward 1 day (to 2014/01/26)>>> 
ghostscript.com
Search: