×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Mixing PCL and PostScript

Mixing PCL and PostScript

Mixing PCL and PostScript

(OP)
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

RE: Mixing PCL and PostScript

Q. What do I do to put them together?

A. You can't; you can't mix page description languages on the same sheet.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close