Skip to main content
Participating Frequently
September 6, 2010
Question

Not printing Multiple Copies

  • September 6, 2010
  • 2 replies
  • 2735 views

I have a postscript file which has two logos and text to be printed on multiple pages. The logos are the same in all the pages, however i need to have text different in the pages.I have encapsulated the images along with the text.The problem is that, when i print on the Canon Printer, it prints only the first page and the subsequent  pages(Basically same logos with different text) are not printed.We cannot print it individually as we have around 500 pages printed daily from a single mainframe file.However when i remove the logos code from the file, text gets printed on multiple pages.

I read somewhere in some of the forums that we can use "form" for placing the logos and caching them when required if printing on multiple pages, however we cannot do this as its from a mainframe file we print and a vendor also does this printing to whom i ftp the file.

Is it related to DSC Comment %%Page or some other reason??

Any help??. The same structure gets repeated in the same manner, however the text varies in the subsequent pages. I am a novice to Postscript so pardon me if the postscript coding is really bad!

Sample postscript Code:

==================

%!PS-Adobe-3.0

%% paper settings after this!

%%Page: 1 1

%%BeginProlog

% Prolog for the Images

%%EndProlog

%%BeginPagesetup

userdict begin /ehsave save def end

%%EndPagesetup

%%Text Begins here

/bd {bind def} bind def

/inch {72 mul} bd

/M {moveto} bd

/s {show} bd

/HC {/Helvetica-Bold 10.00 selectfont}bd

($30,460.00) HC 0670.00 0636.00 RJ M s

(MERLOT ) HC 1057.00 0378.00 M s

( ) HC 1055.00 0366.00 M s

...

%%Text Ends here

%% eps OF LOGOS

%%Begin Document: EPA with black background v2.pub

%!PS-Adobe-3.0-EPSF

%%BeginSetup

/mysetup [ 72 600 V 0 0 -72 600 V 590 510 ] def

...

/DeviceGray dup setcolorspace /colspABC exch def

: 424 420 8 0 250 245 1165 367 F F 3 [ 0 ] F

X

doNimage

%% Second Image Code:

/mysetup [ 72 600 V 0 0 -72 600 V 4000 710 ] def-----> Positioning

/DeviceGray dup setcolorspace /colspABC exch def

: 88 88 8 0 2000 -2000 2067 2798 F F 3 [ 0 ] F

...

Image Code

ehsave restore

showpage

%%EOF

%!PS-Adobe-3.0

%% paper settings after this!

The format repeats based on the request and all requests in the same file to be sent to printer!

Thanks,

Shajeeth

This topic has been closed for replies.

2 replies

Participating Frequently
September 20, 2010

I (partially) succeeded in finding one (of possible more) issues in one of your files (Last _Try_Ver_33.txt):

After rendering the first page, it failes because the procedure doNimage is not (no longer) defined.

The reason is probably due to repeatedly copying the same image data into different places without

asserting that the dictionary containing the respective definitions is properly activated.

Could you please explain where and how your image data are copied from (it looks like portions

of a Windows print file)? Maybe I then could give you some hints.

Helge

ShajeethAuthor
Participating Frequently
September 20, 2010

Thanks!!!!

True, the image data is being copied in multiple locations within the same file.

The Logos are basically TIFF images and they are converted to postscript image code using MS-Publisher. These are  windows print file used for mainframe printing.Can you please guide with this info?

Thanks,

Shajeeth

Participating Frequently
September 22, 2010

I strongly recommend to set up a special EPS printer on Windows which "prints" (one page at a time) to a file in EPS format.

A howto (for WinXP, but for Vista or Win7 it will be similar) can be found at

http://www.princeton.edu/~cavalab/tutorials/public/PostscriptPrinterTutorial.pdf

Tht may lead to significatnly bigger EPS files, but then you are sure they are

self contained.

Helge

Participating Frequently
September 7, 2010

You need to encapsulate the EPS contents by PostScript procedures as specified

in the EPSF specification (5002.EPSF.spec.pdf somewhare on Adobe's web site)

(examples see page 20ff).

Helge

ShajeethAuthor
Participating Frequently
September 7, 2010

Thanks for the reply. I tried this encapsulation using EPSF procedures earlier according to the document, but it didnot yield more prints. Its the same state and was getting a blank page for the second page.

Thanks,

Shajeeth

Participating Frequently
September 7, 2010

Then, please, post a sample file or send it by e-mail directly to me (h dot blischke at acm dot org), as your stuff

obviously requires detailed debugging.

Helge