Comment 6 for bug 307471

Revision history for this message
Scott Balneaves (sbalneav) wrote :

Ok, by way of trying to nail this down, here are the EXACT steps to reproduce this problem:

I've added a printer in cups. It's an HP LaserJet 4250. I've ticked off the options for the 500 sheet bin3, and the envelope feeder.

I fire up OpenOffice.org 3.1

Go to Page Styles

Modify "First Page" style, drop down the "Paper tray" option, select "Tray 2" (where we keep letterhead)
Modify "Default" style, drop down the "Paper tray" option, select "Tray 3" (where we keep plain)

Doubleclick "First Page" to apply the first page style to the current page. Type "FRIST PAGE!!!!111one", hit control-enter to get
another page.
Note that page style is now Default, as it should be.
Type "PAEG TWOZORZ!!!!!!!one".

So, expected behaviour is, page1 on letterhead, page2 on plain.

Both come out on letterhead.

Printing to a file, we see:

%!PS-Adobe-3.0
%%BoundingBox: (atend)
%%Creator: (OpenOffice.org 3.1)
%%For: (sbalneav)
%%CreationDate: (Wed Nov 4 15:29:15 2009)
...blah blah...
%%DocumentSuppliedResources: font LiberationSerifFID194HGSet1
[{
%%IncludeFeature: *InputSlot Tray_2 <------ Here in the document setup, InputSlot Tray_2 is selected
} stopped cleartomark
[{
%%IncludeFeature: *PageSize Letter
} stopped cleartomark
%%EndSetup
%%Page: 1 1
%%PageOrientation: Portrait
%%PageBoundingBox: 12 12 600 780
%%BeginPageSetup
%
%%EndPageSetup
gsave
[0.06 0 0 -0.06 12 780] concat
gsave
746 1852 moveto
0 setgray
(LiberationSerifFID194HGSet1) cvn findfont 200 -200 matrix scale makefont setfont
<4C657474657268656164>
[122 89 55 56 88 67 100 90 88 0]
xshow
grestore grestore
showpage
%%PageTrailer

%%Page: 2 2
%%PageOrientation: Portrait
%%PageBoundingBox: 12 12 600 780
%%BeginPageSetup
%
[{
%%IncludeFeature: *InputSlot Tray3_500 <------- And here on the second page, Tray3_500 is selected
} stopped cleartomark
%%EndPageSetup
gsave
[0.06 0 0 -0.06 12 780] concat
gsave
746 932 moveto
0 setgray
(LiberationSerifFID194HGSet1) cvn findfont 200 -200 matrix scale makefont setfont
<4C6574746572>
[122 89 55 56 88 0]
xshow
grestore grestore
showpage
%%PageTrailer

So, my interpretation is, OpenOffice.org is sending out the correct %%IncludeFeature stanzas to switch papertrays.

Now, could someone (Till?) point me to what the chain of filters is? Looks like it's getting butcherd first by oopstops, then is it going on to pstops? or to pstopdf? I hope it's not the latter since there appears (to my eyes anyway) to be NO IncludeFeature handling in pstopdf at all!