搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Customizing headers and footers for printing.

  • 4 回覆
  • 3 有這個問題
  • 72 次檢視
  • 最近回覆由 Amy711

more options

The ability to edit and customize the headers and footers for printing was one of my main reasons for switching from Chrome to Firefox. Now I can't find where to do this. I don't know if it was a recent update or what but I am using Windows 10 Home. Please help so I don't have to find a new browser.

所有回覆 (4)

more options

I'll give you two options with the details to follow:

(1) Become comfortable with entering header/footer detail in the Advanced Configuration Editor (about:config) screen.

(2) Roll back to the old school Firefox approach of separate Print/Preview/Page Setup displays.


Left, Center, and Right Header and Footer Preferences

Headers and Footers are split into three parts each of which can contain free-form text and placeholders that Firefox replaces with values computed at print time. The placeholders are:

  • Title => &T (placed in Header-Left by default)
  • URL => &U (placed in Header-Right by default)
  • Page number of total (x of y) => &PT (placed in Footer-Left by default)
  • Page number (x) => &P
  • Date/Time => &D (placed in Footer-Right by default)

Here is how you can update your header and footer content for particular printers or all printers:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

Headers

(2) In the search box in the page, type or paste print_h and pause while the list is filtered -- you'll see something like the first screenshot (the exact number of custom preferences depends on how many different printers you have used)

The following three preferences are the default, but any printer-specific value overrides them, allowing you to customize individual printers:

  • print.print_headerleft
  • print.print_headercenter
  • print.print_headerright

To edit a default setting, double-click in the implicit second column (wide area to the right of the preference names before the pencil button) or click the edit button. After making changes, press Enter to save your change, or click the blue checkmark button.

To modify a setting for a particular printer (for example, print.printer_Mozilla_Save_to_PDF.print_headerleft), you have two choices:

(A) To have Firefox use the default setting, delete the current custom setting using the trash can at the right end of the row for the custom setting.

(B) Edit the custom setting as desired.

Footers

(3) In the search box in the page, type or paste print_f and pause while the list is filtered

As with headers, the following three preferences are the default, but any printer-specific value overrides them, allowing you to customize individual printers:

  • print.print_footerleft
  • print.print_footercenter
  • print.print_footerright

Edits work the same way for footers as they do for headers.


Roll Back Printing Changes

This preference may be removed in the future once everything is fully debugged, but it's still available for now:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste tab_mo and pause while the list is filtered

(3) Double-click the print.tab_modal.enabled preference to switch the value from true to false

由 jscher2000 於 修改

有幫助嗎?

more options

These features must be implemented to the new modal, too! I and loads of people all over the globe need for example a quick way to determine for each printout (PDF or paper, for example) what kind of info there should be as the headers and footers. In a case where page number and count is not relevant, the date and time can definitely be relevant. Just to name one example.

有幫助嗎?

more options

Is Firefox deeming these two workarounds as the solutions, or is work being done to bring the header/footer options to the new UI?

有幫助嗎?

more options

Easy header/footer customization along with exact margin specification was also a main reason for me using Firefox over Edge. What is up with companies taking away features? Having to change configuration every time I get a situation where I want a different type of header/footer is ridiculous. Sometimes I want the URL shown, sometimes I don't, etc. Why make this so difficult? I like the new ease of specifying a custom scaling % but certainly would give that up to go back to being able to easily change header/footers. Thank you jsher2000 for showing us how to roll-back options. I hope that stays.

由 Amy711 於 修改

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題