Skip to content

Document Printing

randomcoder edited this page Apr 24, 2012 · 3 revisions

Stage 1

The first stage in document printing is to provide a print option that has a letter head at the top of the page with the displayed data underneath it. There is no effort made to paginate the layout as the official information is at the top of the page and is not going to be repeated. The only real requirements after this are:

  • Print preview available in new window only
  • Page numbering must be provided by the browser in page 1 of 5 format.
  • Sensitive information such as markup is not displayed on the page.
  • The print and close operations for a document are separate.

Setting Header and Footer Information

Firefox

  1. Open a new tab and enter about:config in the address bar
  2. Enter header in the search box and clear all the entries for print.print_ and printer.PostScript
  3. Enter footer in the search box and clear the entries for print.print_footerleft & printer.PostScript/default.print_footerleft and set the following
  • print.print_footercenter & printer.PostScript/default.print_footercenter to Page &PT
  • print.print_footerright & printer.PostScript/default.print_footerright to &D

Chrome

When you do a print preview in chrome there is a check box in the left hand panel that allows you to print or hide the header & footer info. For now untick the box and hide all headers and footers.

IE

I'm not sure as I don't have it.

Stage 2

This would involve creating a preview page and then creating a PDF from the preview which is then saved and available for printing.

Clone this wiki locally