Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2017/10/31)20171101 
GM_ HI14:20.13 
ghostbot Welcome to #ghostscript. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line. If you are looking for help or infomation about MuPDF, try the new #mupdf channel.14:20.13 
GM_ I need some assistance with ghostscript.. i need to print a PDF Doc and staple it, can ghostscript be used?14:21.19 
kens Depends.14:21.40 
  What printer ?14:21.53 
  Oh, and on what Operating system ?14:22.04 
GM_ Canon ImageRunner 8585, Windows14:27.20 
kens Why not just open the PDF in Acrobat and print it then ?14:27.33 
  That's probably easier than trying to use Ghostscritp14:27.46 
GM_ the requirement doesn't allow for that; they need everything automated.14:28.11 
kens Before we go further, you are aware that Ghostscript is licenced under the AGPL ? Which includes software-as-a-service ?14:28.44 
  Is this usage compatible with that licence ?14:28.55 
  NB that's a genuine question14:29.15 
  I just don't want to waste your time only to discover later that you can't use Ghostscritp because of the licence14:29.36 
GM_ the files are already in PDF but they expect it to be sent to a printer with specific functions {select paper, select tray, select printer}14:30.03 
  it's a POC, we are interested in anything that can work for the meantime14:30.21 
kens Well OK.14:30.27 
  The only way to drive printers directly with Ghostscript on Windows is to use the mswinpr2 device.14:30.49 
  If this must be automated, then the *default* settings for the printer must be set up so that they are correct.14:31.07 
  Because the device as it is shipped does not attempt to change the printer settinfs.14:31.25 
  The printer must be available to the host computer, either locally or via a share.14:31.40 
  That's because the Windows printer driver needs to be installed on the host computer.14:31.55 
  The documentation on the MS Windows pritners can be found here:14:32.57 
  https://www.ghostscript.com/doc/9.22/Devices.htm#Win14:32.59 
GM_ just scanned thru.. how does the dstaple command work?14:35.26 
kens It doesn't14:35.34 
  You need to set up the pritner default settings the way you want before you print the document14:35.46 
  So that means you need to set up the stapling the way you want it first14:35.57 
  Same for Duplex and Tumble and any other device parameters14:36.16 
GM_ so, ghostscript doesn't handle this aspect?14:36.23 
kens Well that depends what you mean14:36.40 
  The mswinpr2 device is a Ghostscript output device14:36.51 
  It works by sending a rendered bitmap to the Windows printing system14:37.02 
  So any Windows printer will work.14:37.13 
  Its not clear to me what you are exepcting14:37.27 
  Note that a PDF file cannto have any 'stapling' commands14:37.46 
  Because PDF has no device control14:37.55 
GM_ lemme break it down a bit... the Canon Imagerunner has the capability of stapling documents after printing... the expectation is for the PDF to be converted into .PS file .. it contains some command for the printer to execute. after printing is completed it does the stapling14:38.48 
kens Well then that's a different question.14:39.02 
  You could use Ghostscript to convert the PDF file to a PostScript file using the ps2write device, and then send the resulting PostScript file to the printer, using 'copy'.14:39.36 
  The ps2write device, in recent versions of Ghostscript, has controls that permit you to embed per-document or per-page controls into the output.14:40.10 
  So you could add a per-document stapling command, provided you know the PostScript required by the pritner, so that you know what ot insert.14:40.43 
  Since this is devcie-dependent, there's no way Ghostscript can do it for you.14:40.56 
  See the documentation here:14:41.23 
  https://www.ghostscript.com/doc/9.22/VectorDevices.htm#PS14:41.25 
  PSDocOptions and PSPageOptions14:41.35 
  Note that the limitations of PostScript mean that a PDF file with transpaent content will have to be rendered to an image, rather than being sent as a vector description. In this case you should probably ensure the resolution (-r) is set to the same as the printer's resolution14:42.35 
pipitas GM_: Your Canon ImageRunner printer … how old is it? Can it consume PDF directly? Does it support IPP (Internet Printing Protocol)?16:16.10 
  GM_: Because if it does support IPP, you'll be able to query the printer's capabilities, and it will report back if it supports direct PDF print (or which other page description languages you can send to it). It will also report about which types of stapling it supports.16:20.47 
  GM_: If it supports PDF direct print, you'll be able to use `ipptool` (available for Windows, macOS and Unix) to send an IPP print job with the original PDF file directly to the printer, specifying all the job options in IPP language. `ipptool` is part of CUPS, but has now been adopted by the ISTO Printer Working Group (PWG) into its `ippsample` project on GitHub: https://github.com/istopwg/ippsample. Since `ipp16:24.03 
  ne tool, you can easily script it to send the jobs you need to send the way you want it.16:24.03 
  GM_: If the printer doesn't support PDF-Direct, you can still use IPP and `ipptool` to send the PostScript or PCL (created by Ghostscript) to the device with job-options.16:28.06 
cryptopsy pdftops cant convert a file to ps that mupdf can read. i'm trying to understand what's going on here becuase im trying to print this file20:41.05 
  pdftops 1.pdf : Syntax Error (455): Unknown filter 'DCTDecode'20:47.14 
 Forward 1 day (to 2017/11/02)>>> 
ghostscript.com #mupdf
Search: