Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mixing PCL and PostScript 1

Status
Not open for further replies.

kgrafals

Programmer
Sep 25, 2006
6
US
Hi,

I need to write code that gets a PostScript file and appends some code that it says "Released: <date>" (where <date> is today's date) on the corner of the page.

At first I thought I could get PJL to do it with a LabelString but it doesn't seem to be supported with our printers. So instead I'm using PCL to do it. I can get it to print text vertically and I can get it to print the PostScript drawing but it prints them out one at a time, that is, the printer prints a page with the text generated by the PCL code and then prints another page with the PostScript code. What do I do to put them together?

This is what my code looks like so far:
Code:
%-12345X@PJL
@PJL JOB NAME="PostScript_04-28-06"
@PJL ENTER LANGUAGE = PCL
E&a90P
Hello WorldE%-12345X@PJL
@PJL ENTER LANGUAGE = POSTSCRIPT
%!PS-Adobe-2.0
%%Creator: System Development PostScript Output Library
%%Copyright: System Development, Inc., All rights reserved
%%BoundingBox: 62 12 549 779
%%EndComments
%%BeginProlog
%%BeginProcSet: SDI_PS_Functions
/d{def}bind def/b{bind}bind d/bd{b d}b d/x{exch}bd/dp

{dup}bd/al{aload}bd
/t{true}bd/f{false}bd/xd{x d}bd/r{roll}bd/c{copy}bd/i

{index}bd/sb{sub}bd
/ad{add}bd/dv{div}bd/ng{neg}bd/p{pop}bd/rp{repeat}bd/lp

... post script ...

458.033 80.246 458.723 79.541 458.033 78.85 457.327 79.541 

458.033 80.246
4 M
S
gr sp
%%EOF
@PJL EOJ
%-12345X

Thanks,
- ken
 
Q. What do I do to put them together?

A. You can't; you can't mix page description languages on the same sheet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top