PDF to PostScript Using Ghostscript: large files having issues printing

不羁岁月 提交于 2019-12-03 17:16:18

It is not necessarily the filesize of the PostScript that causes your problem:

  • It could be the PostScript itself, or
  • it could be that you made a mistake with your editing of the PS files when you inserted the (proprietary) %KDK-comments.

Are you sure your text editor doesn't silently change your linefeed characters?! This could also change the binary parts of the PostScript!

Also, I'm not sure if the copy command does handle print jobs like it should. I would prefer the lpr command (ah... is that even still available on your version of Windows?!)

To debug this and to explore a few different roads to successful printing, I would try a few different steps:

To debug

  • Send the original PostScript, without the added %%KDK DSC header comments, to the printer.

    That printer model has a nice feature you can utilize: you can check if its RIP processes the input file completely and successfully without needing to output your 500 pages on (wrong) paper and waste it therefore (you'd also need to discard it afterwards -- too much work too). Just click the red "Stop" button on its user interface monitor.

    Does that one complete the RIP process successfully?

    Yes? Now you can now even print it. Before you do so you can even modify the job settings to select a particular paper tray, by clicking on some button on the interface (can't recall the exact button label though). Then "release" the job and it will print.

    If it worked, you can again turn your attention to get your %%KDK lines right.

    If it didn't you have to try another route.

Check if a different PDF-to-PS converter is working

  • Create a PostScript file with the help of pdftops (see here for the pdftops.exe version -- read the README to see which options are available).

    Proceed analog to above: first see if it completes the RIP process. Then continue with your %KDK manipulations....

Check if the direct PDF printing is working

  • The Digimaster model can consume PDF directly. (Well, internally it uses its own PDF-to-PS converter, but that isn't visible to the outside -- so it doesn't really count as a PDF RIP...)

  • If that works, you can even prepend your appropriate %KDK comments to the PDF file, similar to the lines below (don't rely on me getting the details right, it's from the top of my head, and memory is decades old!):

    %!PS-Adobe-3.0
    %%.........................
    %%DocumentMedia: ..........
    %KDKRequirements: .........
    %KDKInserts: ..............
    %KDKSlip: .................
    %KDKBody: .................
    %KDKCovers: ...............
    %KDKPDFPrintAnnotations: on 
    %KDKPDFFitToPage: on
    %KDKBinaryOK: on 
    <esc>%-12345X
    %%Emulation: pdf
    %PDF-1.5
    %...here follow the lines of the original PDF file...
    ...
    

Send jobs via "Kodak Printfile Downloader" (KPD)

  • For Windows there used to be the so-called 'Kodak Print File Downloader' (KPD). The KPD is an application, not a printer driver. Not sure if it is still available.

  • You could open its GUI, then load a PS, PDF, PCL or TIFF file into its to-be-printed-list of jobs. Then select a few job options (like trays, stapling, sorting etc.). Lastly, send the job off to the Digimaster...

  • The KPD essentially does the same thing, as you want to achieve: insert %KDK commands into the file header. But you want to do it with a script or an editor (and possibly automatically via a batch process, once it works).

  • The KPD requires interactive user activity and cannot be scripted.

  • But you can (ab-)use it to intercept the files it creates from the Windows spooling system, study them and then adapt your scripted efforts so that they also work....


Update

(I had wanted to add this already in my initial answer. But time ran out, so I skipped it for the time being..)

Observe the RIP processing directly at the printer UI

  • Digimaster printers have their own built-in touchscreen or flatscreen or tube monitor (depending on the age of the model). They also typically have a full-time operator who knows the machine and its tweaks and peculiarities quite will. The machine may be quite a distance from the user sending a job.

  • So the following should be done when debugging a print problem:

    • Ask the operator to set the printer to "stop printing", but still "receiving new jobs".
    • Submit any job(s) you want.
    • Walk up to the printer and its operator.
    • Release the job for RIP-ping and observe what happens:
      • You may see everything going alright and completing until the last page (you know how many pages you submitted, right?)
      • Or you may see the job aborting at a certain page number.
      • Or you may see the printer RIP chewing extremely long on a certain page (or several pages), but finally completing the job.
      • Or you may see the printer RIP hanging with a certain page forever.
      • Or...

    In any case, the details which are observable here may give important clues about where to look next...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!