modify page header and footer when printing in Chrome

28,173

You can change the center header by changing the content of the <title> tag in the HTML source before printing (right click, choose inspect, expand the <head> tag, right click on the <title> tag and select "edit text"). The other header values cannot be changed, as the Google employee states in the post you linked in your question:

Currently there isn't a way to edit the header when printing a document. You can currently only turn the header and footer on or off which includes the date, name of the web page, the page URL and how many pages the document you're printing.

An alternative is to save the webpage as a PDF (without any headers or footers), and then manually add the headers and footers. I found this website that let you add headers and footers. Use it at your own risk. You might want to add custom margins when saving the webpage as PDF to avoid the footer and header overlaying with the webpage content. 0.5" as top and bottom margin seems to work. If you want to add headers and footers manually, you can look into the command line tool cpdf.

Share:
28,173

Related videos on Youtube

1.61803
Author by

1.61803

Updated on September 18, 2022

Comments

  • 1.61803
    1.61803 almost 2 years

    I checked for flags and extensions to no avail. According to this post, there seems to be no builtin option at the moment.

  • 1.61803
    1.61803 about 6 years
    The question clearly refers to Chrome/Chromium.
  • Boye Borg
    Boye Borg about 6 years
    Yes, the answer also refers to Google Chrome. But since what you want is impossible (see the answer from the Google employee in the post you linked to in your question) I gave you some alternatives. I will remove the suggestion of using firefox. The last alternative only uses your file system in addition to Google Chrome. If that's not an option for you, I suggest making your own plugin.
  • Boye Borg
    Boye Borg about 6 years
    @1.61803 I updated my answer to more clearly answer your question.
  • 1.61803
    1.61803 about 6 years
    The post I linked to is two years old and my question just tracks the lack of feature, flags, extensions one year ago. Thanks for the write-up, especially cpdf, but your workarounds are cumbersome.