Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Customize the location of print headers and footers?

  • 4 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: Rick216

more options

Hi. Is there a way to customize the order of Firefox headers and footers on printed pages (including print-to-pdf)?

I prefer the header to be url only, in the center. While the footer has page on left; title in the center, and date on the right.

This used to be easy to accomplish with print options in older versions, then -- as the print dialog changed (and actually improved a lot in most *other* ways) I had to turn to about:config modifications like those described in the 1/27/21 reply here: https://support.mozilla.org/en-US/questions/1323433. But now I can't seem to find any way to have any control over print headers besides "on" and "off."

One problem I find with having both page title and url on top is that these can be long, causing one or both to be truncated.

I'm using Firefox 115.3esr.

Hi. Is there a way to customize the order of Firefox headers and footers on printed pages (including print-to-pdf)? I prefer the header to be url only, in the center. While the footer has page on left; title in the center, and date on the right. This used to be easy to accomplish with print options in older versions, then -- as the print dialog changed (and actually improved a lot in most *other* ways) I had to turn to about:config modifications like those described in the 1/27/21 reply here: https://support.mozilla.org/en-US/questions/1323433. But now I can't seem to find any way to have any control over print headers besides "on" and "off." One problem I find with having both page title and url on top is that these can be long, causing one or both to be truncated. I'm using Firefox 115.3esr.

글쓴이 Rick216 수정일시

선택된 해결법

Rick216 said

I prefer the header to be url only, in the center. While the footer has page on left; title in the center, and date on the right.

It works for me on 115.3.1esr with the following about:config settings (no printer connected):

print.print_footercenter = &T
print.print_footerleft = &PT
print.print_footerright = &D
print.print_headercenter = &U
print.print_headerleft =
print.print_headerright =
문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (4)

more options

No suggestions?

more options

Thanks, but that answer wouldn't explain why Firefox's own print-to-pdf moved page title from the footer to the header (where url remains) when I updated from 102esr to 115esr, would it? Or why my physical Brother printer did exactly the same?

more options

선택된 해결법

Rick216 said

I prefer the header to be url only, in the center. While the footer has page on left; title in the center, and date on the right.

It works for me on 115.3.1esr with the following about:config settings (no printer connected):

print.print_footercenter = &T
print.print_footerleft = &PT
print.print_footerright = &D
print.print_headercenter = &U
print.print_headerleft =
print.print_headerright =
more options

EDIT TO ADD: It turns out that things only started "working" for me last night on *one particular* physical printer. When I used my laptop with a different physical printer today, it reverted back to the original, undesired, layout I described, with both page title and url in the header. And it turns out "Save to PDF" was likewise still putting both page title and url in the header.

I've discovered what appears to be a full solution. Perusing about:config I have discovered that all printers, including "Mozilla Save to PDF" have their own *separate* versions of the lines for print header and footer layout. I'm guessing that either those lines weren't present back in 102esr OR that in 102esr the strings assigned to them automatically changed to match the "master" (i.e., non-printer-specific) settings -- because I know I never had to make such modifications in 102esr. Examples of kinds of lines I am talking about are:

print.printer_Brother_MFC-J1010DW_Printer.print_footerleft and print.printer_Mozilla_Save_to_PDF.print_headercenter

Changing all of *these* lines to match the values used for the "master" (as described in zeroknight's post) makes everything print (or Save to PDF) with my desired header and footer layout.

I'll leave the originally marked solution, because, while there was actually more to the fix (at least for someone with physical printers beyond "Mozilla Save to PDF), it demonstrated that the same about:config header & footer values used in 102esr are still -- at minimum -- part of the solution with 115esr. (And this means Dropa's answer had some relevance in describing a printer-specific angle to this, although I can't imagine the printer software would assign Firefox-specific parameters.)

ORIGINAL POST: That's actually what I already had, but as of last night it's working properly -- looking just like your sample. Even though I haven't changed anything in the meantime. Odd. In any event, thanks for looking into it and confirming that that configuration should work.

글쓴이 Rick216 수정일시