[SUGGESTION] switching trays in printjob

Kurt Pfeifle k1pfeifle at gmx.net
Wed Sep 5 02:41:50 PDT 2007


Philipp Morger wrote:

>> I don't know how to achieve this from OpenOffice specifically... It's
>> been a while that I looked at the printing options of OOo on Linux,
>> and they may have improved their printing stuff. Or are you talking
>> 'bout OOo on Windows?
> 
> I try on linux, but I assume it's the same on Windows...
> 
>> However, there is a way in CUPS to  set this up for *any* application
>> that is able to send reasonable (read: DSC-compliant) PostScript to
>> the printing system. See further below...
> 
> I stumbled over this some time ago, but it does not solve the issue, as 
> users probably some time want to print a radom selected page from some 
> slot... but thanks for pointer!

That's *very* rare. *If* they want a page from a different slot, it
is 99% for the first page.

>> You know, sometimes it is helpful to post "funny abbriated (?)
>> messages"
>> given back by some software alongside one's posts seeking for
>> community
>> support for said software...  :->>
> 
> Oh, that was "W2 UNGÜLT PERS" -> Invalid personality, somehow the printer 
> does not like the PS CUPS throws at it...

Was this printed on a "PostScript error page" by the printer? Or where
did you see this message?

>> How exactly is your procedure that you use on Windows Winword? Which
>> version of Windword? Which is the driver you installed on the
>> Windows print client?
> 
> /me using Winword?! - goash, that would be the day... no my fellow users 
> do ;)

Then you wasn't clear or I wasn't awake enough. I took your inquiry
as a need for Windows (and Unix) Ooo users to achieve that print output
feature via CUPS.

So for Windows users (who do not print via CUPS) it works, but you want
it for Unix users too (via CUPS)?

> It's O2K and OXP, you fire it up and define under Page Settings (or 
> something like it) to print one page on tray 1 and then you make some 
> kind of manual break to define that the second page appears on another 
> tray - you are basicaly free to have a document with any number of 
> pages and define for any page an individual tray.

No, in O2K I don't know this feature. Only the one where you select
"tray A for page 1" & "tray B for all the rest".

Unless your users insert some specific PS or PCL or MS code into their
Word pages into some hidden form fields... (which I also know about).

> The drivers are those from the HOW-TO's dor setting up samba with cups, 
> but before I go into the pit of samba and printing I though it would be 
> nice to do it without all that stuff and try it over OO+cups.

For general apps on Unix it *should* work like I outlined in my last post.
Did you even try it with OOo?

However, if it is the same as it used to be years ago, here is the OOo
specific way (from memory):

 * In OOo choose the program/dialog/menuitem were you define your
   "styles and formats"

 * Define different page styles; Name one page style "FirstPage"
   (or whatever you like).

 * Name your other styles differently (or keep one other style
   named "default".

When you define each page style, you can assign a specific printer
tray to it (just don't use "autoselection" or "use printer settings"
with it). That should do the trick. It should make OOo output
PostScript code for printing that has specific tray selection code
injected for each page. (And make sure your CUPS is then *not* set
up to insert a *different* page code.)


-- 
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
A RICOH Company  ...........................  D-70327 Stuttgart/Germany




More information about the cups mailing list