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

Embedding graphics in a PCL document

Embedding graphics in a PCL document

Embedding graphics in a PCL document

I've got an application that draws a form in PCL.  I now need to add a copy of a signature to the form.

Is there any way, in PCL or HPGL, to embed a graphics file?  I tried getting a graphics program that does .jpg to .pcl conversion, and then just putting the resulting .pcl code into the document - the results were _not_ pretty.

Thanks for any suggestions...

RE: Embedding graphics in a PCL document

I'm looking for a tim boyer in Nevada...are you he?

RE: Embedding graphics in a PCL document

Nope; Ohio.

RE: Embedding graphics in a PCL document


I have the same problem.  Our form contains our logo and we want to print it using PCL.  I also tried converting the bmp to pcl by printing to file (using a hp laserjet driver) and then capturing the resulting pcl commands but the printout is incomplete.  some parts of the image were missing.  

Anyone, please share your knowledge on this.  thanks.

RE: Embedding graphics in a PCL document

Still haven't found a good solution.  I'm not looking _too_ hard - but I am looking!  If I find something, I'll be sure and let you know.

-- tim --

RE: Embedding graphics in a PCL document

I found the answer to our question last week.  You need to have your graphics (bmp or in any other format) converted to PCL binary file.  The cheapest way to do this is to open your file and then do print to file.  However, the result is messy and unacceptable and it will involve editting the binary file it produced.  I found a software that does this cleanly and effectively and you can even assign a macro id to the PCL converted file.  After converting the bmp to PCL macro, you need to download the macro to the printer by doing

copy /b <macrofile> lpt<#>

where <macrofile> is your image converted to pcl macro and <#> is your printer port.

After successfully downloading, your macro to the printer, you may then send PCL command to the printer to execute your macro and it will print the image.

the command to execute the macro is:

ESC&f2X - will execute the last macro id specified.

If you need any more information, email me @ mcregal@yahoo.com

Hope this helps.

RE: Embedding graphics in a PCL document

Good news.  I found this option for us to do this cheaper.  The software I was talking about in my previous entry is called Transform Professional from Mips Dataline America.  Mips however got acquired by g7 Productivity Systems and the software now costs $1500.  I found this website that sells this software for $500.00 less.  Plus, I talked to the owner directly (his name is Greg Berthume) and he can even convert the images to PCL macro files at very affordable cost.  Which means, that if you are only converting few images, it is much cheaper to just send him your image(s) and he will convert it for you for a reasonable rate.  Go to his website for more information...


when you order, tell him that Dan Regalado referred you.  He knows that I am referring you to him.

Good luck guys.

RE: Embedding graphics in a PCL document

Dan, that's fantastic.  I've got just one signature to add - I'll give him a call today.

Thanks _very_ much!

-- tim --

RE: Embedding graphics in a PCL document

I just was on the looking for an answer cause I had the same problems. After all I did not finde any good and cheap way of converting grafiks for PCL. Cause I have to convert a lot of graphiks and dont want to spend $1500 just to be able to convert, I m asking myself if there is not a software less expencive that the one noticed above. Does anybody know a cheaper one????

RE: Embedding graphics in a PCL document

well there is a website that will convert your graphics to pcl and other formats for free and it doesn't take long to do either. the website is http://daytona.ca.sandia.gov/cgi-bin/conversion_central-3.2/cccgi I have used it several times with bmps and it worked great. hope it works good enough for you too.

RE: Embedding graphics in a PCL document

I sell a program called MKPCL designed specfically
take a .BMP or .PCX file as input and create a PCL
file as output. There are some 20 options to modify
the output.

This is a command line driven program and is available
for both DOS and SCO UNIX. $75  It is very fast.

If you are interested, email to jim@spctra.wimsey.com
or telephone (604)738-6112

Jim Asman

RE: Embedding graphics in a PCL document


I have found a solution!  For those hardcore users in Linux and Unix use ImageMagick-5.4.6. It will convert any grayscale PCX to PCL perfectly and it's free!  FREEE!!!!  Woohoo!!!

Juan M. Sola

RE: Embedding graphics in a PCL document

I want to print a pcl overlay (with macro) on epson epl 5800 o 5900 but the printer print only a blank page

RE: Embedding graphics in a PCL document

There are a few reasons why you could be getting a
blank page. Without seeing your PCL code it's pretty
difficult to say.

Perhaps your macro is not stored in the printer properly
or it isn't being called properly. Maybe it is printing
at an address off the page...

Also, are you sure that the code itself actually does
print something?

More information needed...

Jim Asman

RE: Embedding graphics in a PCL document

I just happened to pass by to this site and saw your name ( dai ka na talaga ma reach pade, payt sana )in the forum,tell me more about this site. thanks,(

Alan Brojas

RE: Embedding graphics in a PCL document

I have used "http://daytona.ca.sandia.gov/cgi-bin/conversion_central-3.2/cccgi" mentioned above by "Wonderboy" to convert files and it worked great, but the site has disappeared.  Anyone know if it was moved someplace else, or if there is another free site to convert BMP to PCL?  

Jim Wings

RE: Embedding graphics in a PCL document

Wish I had seen this earlier. Did my first signature to print on a 1040 tax form about 8 years ago.

RE: Embedding graphics in a PCL document

RedHat Linux 7.3 and later (maybe earlier)

convert image.png image.pcl


RE: Embedding graphics in a PCL document

Done for some maybe...

Hopefully the RedHat program can deal with image files that people are typically looking to convert... .bmp, .jpg etc.

Jim Asman

RE: Embedding graphics in a PCL document

I've done signatures for years on forms.

Get a tiff file (scan the signature) of the signature,
then use vuimg (a dos graphics program) and it will create
a raster graphics file of the signature. You will need to
play with it to get it the size wanted but it works great
on laser printers. Should work on most ink-jets (hp pcl compatible but should have it as the last thing in the file).

RE: Embedding graphics in a PCL document


There is a list (pages long) of the different image formats one can use.

If you are specifically looking try a man on ImageMagick for what types are available and a man on convert to get the syntax if you don't know the correct extension.

example: convert image.bmp image.jpg      this works fine

however if you don't know the correct extension for a CMYKA file just specify that's what it is and it will convert it.

Works very well and great for multiple images in a script.

Alex G.

RE: Embedding graphics in a PCL document

I first compiled ImageMagick 10 or 12 years ago, long before Red Hat or Linux were around. At that time, I don't believe PCL was supported, but it is significant piece of work.

For format conversions in the Windows environment, the Hijaak Express package is inexpensive and can convert a long list of image formats to whatever, including PCL.

While it only supports BMP, PCX, and JPG, my MKPCL program provides much better PCL support than the others, and it is available for SCO, DOS, Linux, and freeBSD. It does more than just convert the format. Of particular interest is the option to specify the PCL output as a macro, PCL compression that can reduce filesize immensely particularly on bi-level files, and the ability to embed the printing location on the sheet in the file. A bunch of other options are there as well.

As with many computer tasks, there are a number of approaches to accomplish your ends. Over the years, and I have been doing this for a long time, I have found that it is almost always best to set up PCL images as macros. It is simply easier to work with them and considerably more flexible within your application when the image is a macro.

Certainly, you can add the macro code by hand to any PCL file that lacks it.

Jim Asman

RE: Embedding graphics in a PCL document


I just stumbled into this forum and quite surprised that SQR is
not even mentioned when doing PCL encoding. We have been using
SQR to print checks and other high graphic reporting such as BARCODE labels and logos, signatures and micr. People who uses
application like Peoplesoft really know this product very well.

I would suggest to look into SQR since this product is independent of any platform and database

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