Skip to main content
Participant
November 1, 2010
Question

Multiple Copies of Same Page Content from Various Trays

  • November 1, 2010
  • 1 reply
  • 1311 views

I use 'gs' to create postscript, and 'setpagedevice' to specify trays.

I print a single page of content (say the file "f.pdf") on each of six different colors of paper, which are pulled from different trays.   At the moment, I do this by repeating the filename "f.pdf" six times as an arg to 'gs'.  This creates a single postscript file, into which I insert my six 'setpagedevice' commands.
My 65ppm printer has to re-render the same 'f.dpf' postscript six times, which causes it to only produce about 20ppm.
Is there a way to pass a NumCopies specification so that each of my 'setpagedevice' commands switches trays to print the exact same rasterized bitmap? In other words, to write a postscript file that rasterizes 'f.pdf' only once, and still makes use of that cached image for each 'setpagedevice'?
I'm happy to read manuals, but I don't know what technique or feature name(s) I should look for...
thank you,
- Randy

This topic has been closed for replies.

1 reply

Participating Frequently
November 3, 2010

In level 2 the copypage operator may have helped but that was suggested for debugging only. You may try creating a form

out of your file and see if that helps in the speed.

Ed

%!
/MyForm
<<
  /FormType 1
  /Matrix [1 0 0 1 0 0]
  /BBox [0 0 612 792]
  /PaintProc
  {
    72 720 moveto
    /Helvetica 72 selectfont
    (Hello World) show
  }
>> def

<<
  /PageSize [612 792]
>> setpagedevice

MyForm execform
showpage

<<
  /PageSize [612 1008]
>> setpagedevice

MyForm execform
showpage

Participating Frequently
November 3, 2010

This approach will only increase the printing speed if the forms contents are cached as a rendered image.

This is highly implementation dependent, and I doubt that the interpreter will cache several pages rewritten

as forms.

Helge

Participant
November 3, 2010

I'm happy to give it a try - how can I attempt to save my single page as a rendered bitmap?

- Randy