Closed Bug 93243 Opened 23 years ago Closed 23 years ago

Make margin values for header and footer preferences

Categories

(Core :: Printing: Output, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: MichaelWright9, Assigned: rods)

References

Details

Add methods to nsIPrintOptions for setting and getting the header and 
footer margins.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This wont happen for a while.
Target Milestone: --- → Future
This will not happen for a while.
I am not sure what you want here.. do you want to set these margins at print 
time, or do you want to have a application prefrence that has these values you 
can change before the application starts up.  
In may case, I have an embedded browser, so I am not interested in a UI fix. I 
just want to be able to change the margins on the header/footer. Currently they 
are hard coded in nsPageFrame.cpp to 0.25 inches. It would be nice if I could 
change them before printing, using the nsIPrintOptions. I have run across some 
printers that cannot print 0.25 inch from the page edges.
An engineer at HP just informed me that the HP DeskJet printers have a hardware
limitation of 0.49 inches on the bottom margin. So hard coding the footer to
0.25 does work for this printer. Looks like we need at least 0.50 inches.
Don, should we re-open bug#91321 and change the patch/fix to use different
values for the footer?
Don- Please ignore the last message. I am not exactly sure where my head is 
today, but it is not here. The top/bottom margins for the header/footer are 
controlled by the top/bottom margins of the page. (DUH!) The right/left margins 
of the header/footer are hard coded to 0.25. Sorry for all the mail.
so is this bug invalid.. or do you have a specific request for?
Yes, I still think this is valid, but only as an enhancement. There should be no 
rush to do this. 
*** Bug 97818 has been marked as a duplicate of this bug. ***
Rod, I think this is part of the nsIPrintSettings API work.
Reassigning to Rod.
Assignee: dcone → rods
This feature is really missing.

Whenever I print a Web-Page, the header and foot is not print out, because it is
outside the physical margins of my printer (HP laserjet 4).
Printing a Web-Page without having the page-location in the header and the date
of print in the footer makes this printout nearly worthless. It's like a
photocopy of a page in a book without notice of the book.....

You can choose the margins of the page-context in the printpanel, but the header
and footer always stick to the border of the page.

So there are two ways:

a) Make a header and footer section in the print panel, where one can choose the
fontsize and space between header <-> context <->footer areas.

b) For a quick work-around you could make the footer and header stick to the
margins instead to the page border. So making the borders wider and higher the
footer and header will come into the physical printable area.

This one looks like it could be related to bug 123151. 
Blocks: 125824
Michael, this is fixed. On linux you can now specify the "gap" between the edge
of the paper the headers and footer. Bring up the Print Dialog and click on
"Properties".

This is required because different printers have different "gaps" and postscript
and XPrint behave differently.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.