Issue 19994

Summary: Printing option settings apply only to the first page of the document
Product: gsl Reporter: tillkamppeter <till.kamppeter>
Component: codeAssignee: philipp.lohmann
Status: CLOSED FIXED QA Contact: issues@gsl <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1 RC4   
Target Milestone: OOo 1.1.2   
Hardware: All   
OS: Linux, all   
URL: http://qa.mandrakesoft.com/show_bug.cgi?id=5643
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description tillkamppeter 2003-09-24 16:07:40 UTC
When printing with OpenOffice.org 1.1.0 ("File"/"Print") and changing option
settings using the "Properties" button in the printing dialog, the settings
apply only to the first page and not to the subsequent pages.

The problem is caused by the way how OpenOffice.org generates PostScript. It
puts the PostScript commands (taken from the PPD file) which are supposed to
apply to the whole document into the "%%BeginPageSetup ... %%EndPageSetup"
section of the first page and not into the "%%BeginSetup ... %%EndSetup" before
the first page. This way the options apply only to the first page.

See also the document about DSC comments on Adobe's site:

http://partners.adobe.com/asn/tech/ps/technotes.jsp
Comment 1 christof.pintaske 2003-09-26 16:33:23 UTC
cp->pl: please have a look
Comment 2 philipp.lohmann 2003-10-06 11:31:52 UTC
.
Comment 3 philipp.lohmann 2003-10-31 14:10:19 UTC
There was a bug that would prevent the features that are only allowed
in DocumentSetup from being emitted at all (broken since OOo1.1beta2).
Aside from that OOo puts all features that are marked either
"PageSetup" or "AnySetup" into the first pagesetup where they are
changed from the default or the value of the last page setup.

committed in CWS vcl7pp1r3
Comment 4 philipp.lohmann 2003-11-13 13:10:04 UTC
verified changes in CWS vcl7pp1r3
Comment 5 philipp.lohmann 2004-01-27 10:29:15 UTC
merged in 645m25s1