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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge PCL image and text produces an extra Form feed

Status
Not open for further replies.

pinne65

MIS
Oct 8, 2006
1
US
Hi,

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?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top