Contact US

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!

*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

Merge PCL image and text produces an extra Form feed

Merge PCL image and text produces an extra Form feed

Merge PCL image and text produces an extra Form feed


I'm trying to merge a pcl representation of graphic image with some text and have them print on the same page. But the printer spits out a form feed between the image and the text. I.e. the image prints on one page and the text on the next.

A C program first reads the pcl file, prints it to stdout, then it does the same with the textfile. The output is piped to the AIX's lp command printing to various types of HP Laserjets and compatibles.

I found and removed a formfeed after the "end graphic image" sequence in the pcl file, but that did not help.

This has worked before with another pcl file. But I had to make changes to the image and re-create the file. ("Print to file" from Paint Shop Pro using HP LJ 4000 driver on Win XP).

Anyone any idea on how to prevent the form feed after the Image?

RE: Merge PCL image and text produces an extra Form feed

Maybe the image is placing the cursor at the bottom margin and you are getting the FF because the cursor is moving past the bottom margin rather than an explicit formfeed.
Usually it is easier to do what you are after when the image is run as a macro rather than direct.

You might go to my website and download a demo of my MKPCL program that creates PCL images from BMP, PCX, and JPG files. The application guidelines section of the manual should give you a framework for how to go about it.

Jim Asman

RE: Merge PCL image and text produces an extra Form feed

One thing you might try is to precede the image with a "save cursor"<esc>&f0S command and then follow it with a "restore cursor"<esc>&f1S command.

Jim Asman

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