Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think this forum rocks it has saved my bacon many many times..."

Geography

Where in the world do Tek-Tips members come from?
henningp (TechnicalUser)
17 May 12 15:11
We are wanting to print 2/page. Is there a PCL command for that?
Thanks!
jlasman (TechnicalUser)
17 May 12 16:58
No there is not. Your application will have to deal with it.

Is your intent to print two pages side by side, perhaps duplexed, and then folded into a booklet? If so, then the specific pages that print side by side will be dependent on the total number of pages in the booklet.

For example, a single sheet 4 page booklet would have ...

Side A p4 p1

Side B p3 p2

Lets say you wanted a 16 page booklet(4 sheets).

Fold the stack of paper in half and work your way through all 16 booklet pages, writing the appropriate page number on each page. Then you can take it all apart to see the arrangement required for each sheet.


Jim Asman
http://www.spectracolorservices.com

DansDadUK (Programmer)
18 May 12 6:30
>> Is there a PCL command for that?
>>> No there is not. Your application will have to deal with it.
>>> ... see the arrangement required for each sheet ...

As Jim says, you need to do it yourself (assuming, as per your other threads, that your application is writing the PCL directly, and not using a printer driver).

To put (a few) more bones on it, you'd have to select an appropriate size of font, and either use precise cursor positioning sequences to place each page and line (as per attached sample print file), or (assuming two logical pages on a Portrait sheet) set appropriate left margin and line spacing and initial cursor position (for each page) then just have <CR><LF>-terminated lines of text.
DansDadUK (Programmer)
18 May 12 6:39
... and here's an analysis of that sample print file:

CODE

<Esc>E Printer Reset <Esc>&l26a Page Size: A4 0O Orientation: Portrait <Esc>&u600D Unit-of-Measure (600 PCL units per inch) <Esc>&a0L Left Margin (column 0) <Esc>&l0E Top Margin (0 lines) <Esc>(19U Primary Font: Symbol Set (identifier = 19U) <Esc>(s0p Primary Font: Spacing: Fixed 15h Primary Font: Pitch (15 characters per inch) 0s Primary Font: Style (Upright, solid) 0b Primary Font: Stroke Weight: Medium 4099T Primary Font: Typeface (identifier = 4099) <Esc>*p218x Cursor Position Horizontal (218 PCL units) 360Y Cursor Position Vertical (360 PCL units) <Esc>*c4230a Rectangle Size Horizontal (4230 PCL units) 4b Rectangle Size Vertical (4 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*c4a Rectangle Size Horizontal (4 PCL units) 3115b Rectangle Size Vertical (3115 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p218x Cursor Position Horizontal (218 PCL units) 3475Y Cursor Position Vertical (3475 PCL units) <Esc>*c4234a Rectangle Size Horizontal (4234 PCL units) 4b Rectangle Size Vertical (4 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p4448x Cursor Position Horizontal (4448 PCL units) 360Y Cursor Position Vertical (360 PCL units) <Esc>*c4a Rectangle Size Horizontal (4 PCL units) 3115b Rectangle Size Vertical (3115 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p218x Cursor Position Horizontal (218 PCL units) 3525Y Cursor Position Vertical (3525 PCL units) <Esc>*c4230a Rectangle Size Horizontal (4230 PCL units) 4b Rectangle Size Vertical (4 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*c4a Rectangle Size Horizontal (4 PCL units) 3115b Rectangle Size Vertical (3115 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p218x Cursor Position Horizontal (218 PCL units) 6640Y Cursor Position Vertical (6640 PCL units) <Esc>*c4234a Rectangle Size Horizontal (4234 PCL units) 4b Rectangle Size Vertical (4 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p4448x Cursor Position Horizontal (4448 PCL units) 3525Y Cursor Position Vertical (3525 PCL units) <Esc>*c4a Rectangle Size Horizontal (4 PCL units) 3115b Rectangle Size Vertical (3115 PCL units) 0P Fill Rectangular Area: Solid Area <Esc>*p482x Cursor Position Horizontal (482 PCL units) 6700Y Cursor Position Vertical (6700 PCL units) <Esc>*p230x Cursor Position Horizontal (230 PCL units) 450Y Cursor Position Vertical (450 PCL units) ..data.. Page 01 line 01 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 585Y Cursor Position Vertical (585 PCL units) ..data.. line 02 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 720Y Cursor Position Vertical (720 PCL units) ..data.. line 03 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 855Y Cursor Position Vertical (855 PCL units) ..data.. etc. etc. <Esc>*p230x Cursor Position Horizontal (230 PCL units) 3615Y Cursor Position Vertical (3615 PCL units) ..data.. Page 02 line 01 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 3750Y Cursor Position Vertical (3750 PCL units) ..data.. line 02 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 3885Y Cursor Position Vertical (3885 PCL units) ..data.. line 03 <Esc>*p230x Cursor Position Horizontal (230 PCL units) 4020Y Cursor Position Vertical (4020 PCL units) ..data.. etc. etc.

... and it should have had a 'reset' (<Esc>E) at the end - I forgot to add it in.
webrabbit (MIS)
18 May 12 12:54
I have a few COBOL applications which do just that: Print booklets, computing the pages that should be side-by-side and producing the appropriate PCL mixed with the data.

As COBOL is supposedly an anyone-can-read-it language, you should not have any problem converting it to the language of your application.

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!

Back To Forum

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