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!

Insert image in a PCL5

Status
Not open for further replies.

DrMagoo

Programmer
May 23, 2007
6
CA
Hi guys. I have look every were i could go and i found nothing. I want to insert a logo in the top of my page.

i got this code so far but for the logo big ?????.

E&l2H&l0E&l3A&l5D(10U
(s4148t1p7v0B

(s0P
(s1P(s11V*p0160Y*p1875X\DATE_P1\(s0P
(s1P(s11V*p0160Y*p1905X\DATE_P2\(s0P
(s1P(s11V*p0160Y*p1935X\DATE_P3\(s0P
(s1P(s11V*p0160Y*p1965X\DATE_P4\(s0P
(s1P(s11V*p0160Y*p1995X\DATE_P5\(s0P
(s1P(s11V*p0160Y*p2025X\DATE_P6\(s0P
(s1P(s11V*p0160Y*p2055X\DATE_P7\(s0P
(s1P(s11V*p0160Y*p2085X\DATE_P8\(s0P
(s1P(s11V*p0160Y*p2115X\DATE_P9\(s0P
(s1P(s11V*p0160Y*p2145X\DATE_P10\(s0P
(s1P(s07V*p0210Y*p1880X(s3B\DTE_IDENT_P1\(s0B(s0P
(s1P(s07V*p0210Y*p1910X(s3B\DTE_IDENT_P2\(s0B(s0P
(s1P(s07V*p0210Y*p1940X(s3B\DTE_IDENT_P3\(s0B(s0P
(s1P(s07V*p0210Y*p1970X(s3B\DTE_IDENT_P4\(s0B(s0P
(s1P(s07V*p0210Y*p2000X(s3B\DTE_IDENT_P5\(s0B(s0P
(s1P(s07V*p0210Y*p2030X(s3B\DTE_IDENT_P6\(s0B(s0P
(s1P(s07V*p0210Y*p2060X(s3B\DTE_IDENT_P7\(s0B(s0P
(s1P(s07V*p0210Y*p2090X(s3B\DTE_IDENT_P8\(s0B(s0P
(s1P(s07V*p0210Y*p2120X(s3B\DTE_IDENT_P9\(s0B(s0P
(s1P(s07V*p0210Y*p2150X(s3B\DTE_IDENT_P0\(s0B(s0P
(s1P(s11V*p0340Y*p1860X\MNT_FORMATE\(s0P
(s1P(s10V*p0480Y*p0225X\NOM_BENEF\(s0P
(s1P(s10V*p0525Y*p0225X\ADRESSE1\(s0P
(s1P(s10V*p0570Y*p0225X\ADRESSE2\(s0P
(s1P(s10V*p0615Y*p0225X\ADRESSE3\(s0P
(s1P(s10V*p0660Y*p0225X\ADRESSE4\(s0P

i want o insert a logo on the top at left and i realy dont know want to code for.
this is my logo.

thank you guys.
 
You need to convert the logo image to PCL first, and then use that binary file to print the logo.

Typically, you would set the image up as a PCL macro, and have the printer automatically place the logo on every page.

The idea is that you would send the macro file to the printer before the print job so the logo is resident in the printer, and then simply issue a short PCL code on the first page to enable the macro overlay, and voila, you have a logo on every page. Easy stuff.

Are you printing color or BW? PCL3 or PCL5 printer?

Go to my website and download the mkpcl.pdf manual for some general discussion.

Jim Asman
 
I will be printing in BW and it is a pcl5 printer.

 
i got this error.

failure - error 26: Cannot create temp file !


Other thing is there a way to do it without your programme because my boss realy dont want it and want it to put that in a .ldl

thank you
 
You need to create the directory \TEMP first.

Sure! Print the logo to a file through a windows printer driver and then edit out the stuff you don't want. Just make sure that the editor is capable of editing a binary file.

Generally, you want to keep the resolution command, in the form <1b>*t###R where ### is the dpi, probably 600. Then delete everything up until <1b>*r1A . Keep that and everything up to and including <1b>*rB.

Delete the rest, add the macro envelope, and you are good to go.

Jim Asman
 
could i have your e-mail because me and my partnar have try what you said and it is not working.

We try to take the code that your demo have done. i copy it to my code that i post in the top.

 
PCLWorks Program ($89) includes IMG2PCL.exe. IMG2PCL can convert a TIFF or JPEG file into a PCL file, in-stream PCL, a placable logo macro or a full page overlay macro.

You have to be an expert in PCL to figure-out how to edit a Windows temporary printstream into a macro. It used to be easier, but it's way too much effort when a tool like IMG2PCL is available.

Go to Or, first download PCLTool SDK Demo (which includes IMG2PCL.exe).

Regards,
Bob Pooley
bp@pagetech.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top