Sign in with
Sign up | Sign in
Your question

How to set page size in PCL XL

Tags:
  • Printers
  • Peripherals
Last response: in Computer Peripherals
Share
Anonymous
June 3, 2004 3:28:50 PM

Archived from groups: comp.periphs.printers (More info?)

Sorry to ask such a basic question, but I can't make head nor tail of
the PCL XL manual (http://www.hpdevelopersolutions.com/downloads/64/358/xl...)

I plan to use RedMon (http://www.cs.wisc.edu/~ghost/redmon/index.htm)
to set the page size to a custom 8.25 in X 9.5 in, instead of the
Letter size that is currently sent to the printer. The software (which
prints cheques) does not allow the user to select a paper size. It
appears to override the default custom paper size set in Printing
Preferences (Win2K), although the vendors insist that it doesn't. The
printer (SourceTech ST9335, which is really a Lexmark T632 or T630 on
the inside) complains with "34 Short Paper" after it prints on the
custom paper, but it prints fine when we load Letter-sized paper.

Please see below a hex dump of a PCL XL file that successfully draws a
rectangle around a 8.3 inch X 9.5 inch page. If you copy it and paste
it into Notepad, it should print OK. I can also e-mail the actual PCL
file upon request.

I would be very grateful if you could identify the code sequence that
sets the page size. Th XL manual says that BeginPage = 0x43, and the
paper size (MediaSize or CustomMedia Size) is an attribute of
BeginPage, but there is no occurrence of 0x43 as far as I can see.

/* HEX dump of PCL starts on next line */
00000000 1B25 2D31 3233 3435 5840 504A 4C20 434F 4D4D 454E 5420 474E
4141 4732 .%-12345X@PJL COMMENT GNAAG2
0000001C 4444 2056 6572 7369 6F6E 2038 2E32 2E32 2E30 2066 6F72 2057
696E 646F DD Version 8.2.2.0 for Windo
00000038 7773 2032 3030 300A 4050 4A4C 2043 4F4D 4D45 4E54 2053 6F75
7263 6520 ws 2000.@PJL COMMENT Source
00000054 5465 6368 6E6F 6C6F 6769 6573 2053 542D 3933 3335 0A40 504A
4C20 5345 Technologies ST-9335.@PJL SE
00000070 5420 5041 4745 5052 4F54 4543 5420 3D20 4155 544F 0A40 504A
4C20 5345 T PAGEPROTECT = AUTO.@PJL SE
0000008C 5420 4C49 4D41 4745 454E 4841 4E43 4520 3D20 4F46 460A 4050
4A4C 2053 T LIMAGEENHANCE = OFF.@PJL S
000000A8 4554 204C 434F 4C4C 4154 494F 4E20 3D20 4F46 460A 4050 4A4C
2053 4554 ET LCOLLATION = OFF.@PJL SET
000000C4 204C 4D55 4C54 4950 4147 4550 5249 4E54 203D 204F 4646 0A40
504A 4C20 LMULTIPAGEPRINT = OFF.@PJL
000000E0 5345 5420 4C50 4152 4D20 3A20 5043 4C20 4C46 4F4E 5443 4F4D
5041 5449 SET LPARM : PCL LFONTCOMPATI
000000FC 4249 4C49 5459 203D 2050 434C 350A 4050 4A4C 204C 4A4F 4249
4E46 4F20 BILITY = PCL5.@PJL LJOBINFO
00000118 5553 4552 4944 203D 2022 4164 6D69 6E69 7374 7261 746F 7222
2048 4F53 USERID = "Administrator" HOS
00000134 5449 4420 3D20 2246 494C 4D53 4341 4E31 220A 4050 4A4C 2053
4554 2052 TID = "FILMSCAN1".@PJL SET R
00000150 4553 4F4C 5554 494F 4E20 3D20 3630 300A 4050 4A4C 2053 4554
2054 494D ESOLUTION = 600.@PJL SET TIM
0000016C 454F 5554 3D30 0A40 504A 4C20 454E 5445 5220 4C41 4E47 5541
4745 3D50 EOUT=0.@PJL ENTER LANGUAGE=P
00000188 434C 584C 0A29 2048 502D 5043 4C20 584C 3B31 3B31 3B43 6F6D
6D65 6E74 CLXL.) HP-PCL XL;1;1;Comment
000001A4 204C 6578 6D61 726B 2045 6D75 6C61 7469 6F6E 2C20 4E54 2034
2E30 2044 Lexmark Emulation, NT 4.0 D
000001C0 7269 7665 7200 0AD1 5802 5802 F889 C000 F886 C003 F88F 41C0
00F8 88C0 river...X.X...........A.....
000001DC 01F8 8248 C8C0 174C 6578 6D61 726B 2045 6E68 616E 6365 6420
584C 3D31 ...H...Lexmark Enhanced XL=1
000001F8 2E30 F881 47C0 01F8 28D5 CDCC 0441 0000 1841 F82F C000 F830
C001 F826 .0..G...(....A...A./...0...&
00000214 C000 F834 43C0 01F8 036A C001 F854 7FD3 7800 6400 F82A 75C0
F0F8 2C7B ...4C....j...T..x.d..*u...,{
00000230 C000 F805 79C0 FFF8 0963 E37A 0066 0052 15AA 12F8 42A0 C000
F804 63C0 ....y....c.z.f.R....B.....c.
0000024C 00F8 0979 C102 00F8 4B7A 85D3 5215 6500 F84C 6BC1 0300 F84D
C003 F850 ...y....Kz..R.e..Lk....M...P
00000268 9BFA 0C00 0000 7900 6500 7900 AA12 5215 AA12 8486 C101 00F8
3144 4942 ......y.e.y...R.........1DIB
00000284 1B25 2D31 3233 3435 5840 504A 4C20 4C50 4F52 5452 4F54 4154
450A 1B25 .%-12345X@PJL LPORTROTATE..%
000002A0 2D31 3233 3435 5800 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 -12345X.....................
000002BC 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000002D8 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000002F4 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000310 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
0000032C 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000348 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000364 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000380 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
0000039C 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000003B8 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000003D4 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000003F0 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
0000040C 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000428 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000444 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000460 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
0000047C 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000498 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000004B4 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000004D0 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
000004EC 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000508 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000524 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 ............................
00000540 0000 0000 0000 0000 0000 0000 0000
..............
/* PCL Hex dump ends */

More about : set page size pcl

Anonymous
June 6, 2004 12:40:31 PM

Archived from groups: comp.periphs.printers (More info?)

Helloooo... Is anyone out there?
Anonymous
June 6, 2004 4:15:54 PM

Archived from groups: comp.periphs.printers (More info?)

On 6 Jun 2004 08:40:31 -0700, johnbrown105@hotmail.com (John Brown) found
these unused words floating about:

>Helloooo... Is anyone out there?
yes






menu ...
Related resources
June 7, 2004 12:45:11 AM

Archived from groups: comp.periphs.printers (More info?)

johnbrown105@hotmail.com (John Brown) wrote in message news:<ee1f9e62.0406031028.23e84c6a@posting.google.com>...
> Sorry to ask such a basic question, but I can't make head nor tail of
> the PCL XL manual

If you look at the code you posted, the first several lines are PJL
(Printer Job Language), which you should look up first. That controls
many basic printer settings. Then it goes into the PCL.
I think there is a PJL command to ignore page size errors, that may
solve your problem.
(Also PJL is ASCII, just post that, not a hex dump.)
Anonymous
June 7, 2004 8:32:15 PM

Archived from groups: comp.periphs.printers (More info?)

7ibehx001@sneakemail.com (Alan) wrote:

> (Also PJL is ASCII, just post that, not a hex dump.)
I realize that. I posted the hex dump of the entire data for
completeness. For what it's worth, the PJL follows:

%-12345X@PJL COMMENT GNAAG2DD Version 8.2.2.0 for Windows 2000
@PJL COMMENT Source Technologies ST-9335
@PJL SET PAGEPROTECT = AUTO
@PJL SET LIMAGEENHANCE = ON
@PJL SET LPARM : PCL LCOLOREXTENSIONS = ON
@PJL SET LCOLLATION = OFF
@PJL SET LMULTIPAGEPRINT = OFF
@PJL SET LPARM : PCL LFONTCOMPATIBILITY = PCL5
@PJL LJOBINFO USERID = "Administrator" HOSTID = "FILMSCAN1"
@PJL SET RESOLUTION = 600
@PJL SET TIMEOUT=0
@PJL ENTER LANGUAGE=PCLXL

My printer manual does not mention PJL at all, and it mentions PCL
only to say that the printer is compatible with it. I could not find
anything specific to my problem , or suppressing errors generally in
the HP PJL reference. The nearest variable that I found was AUTOCONT
which has the following terse description in the manual:

"Returns the autocontinue configuration".

When I set it to ON, it did not help.

I can go to my original plan, but print in PCL instead of PCLXL. The
driver lets you choose. In PCL, I can easily identify and remove the
page size sequence. The default paper size in the front panel is used,
and the job prints OK with no beeping.

Anyway, the printer beeps only at the end of the job, and not after
each page, so plan B would be to do nothing - maybe the customers can
live with the beep.

Thanks for your help.
!