# Configure printer settings

**URL:** <https://forums.powershell.org/t/configure-printer-settings/20945>\
**Category:** PowerShell Help\
**Created:** [November 16, 2022, 7:49pm UTC](https://forums.powershell.org/t/configure-printer-settings/20945 "2022-11-16T19:49:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://forums.powershell.org/u/Jane)\
**Post date:** [November 16, 2022, 7:49pm UTC](https://forums.powershell.org/t/configure-printer-settings/20945/1 "2022-11-16T19:49:10Z")

</div>

Hello everyone,

Is it possible to use powershell to disable the Headers and footers? I have been searching but I haven’t found anything. If powershell is not able todo this is there any other way this can be adjusted using a script?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/0/029f005c4d34be516dd86d656918678069fedd47.png)

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [November 16, 2022, 9:11pm UTC](https://forums.powershell.org/t/configure-printer-settings/20945/2 "2022-11-16T21:11:16Z")

</div>

Hello Jane,

Are you asking about changing settings in google chrome? If that’s possible it wouldn’t be anything specific to powershell, chrome would need to offer an interface to allow you to programmatically change it. I would first find how to do it at all, then start looking at doing that in powershell.

---

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://forums.powershell.org/u/Jane)\
**Post date:** [November 17, 2022, 12:36am UTC](https://forums.powershell.org/t/configure-printer-settings/20945/3 "2022-11-17T00:36:16Z")

</div>

Hi krzydoug, everyone,

From my own understanding the printer settings are within the Print dialogue, not in browser settings. This is why i am trying todo this from Powershell.

I also have noticed that the same print dialogue option (header/ footing) appears in Microsoft Edge.

The thing is i know from searching the Powershell documentation there are printer settings to set paper size and such but i have not found a way to disable the header/footing.

Any insights is appreciated!

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [November 17, 2022, 1:12am UTC](https://forums.powershell.org/t/configure-printer-settings/20945/4 "2022-11-17T01:12:09Z")

</div>

It is undoubtedly a part of the chrome interface. Edge is built off of the same open source project that chrome is. Here is a stackoverflow answer detailing that certain builds of chrome now include option to remove the header when printing (and unfortunately the footer as well)

```auto
--print-to-pdf-no-header

```

> <https://stackoverflow.com/questions/55418415/disable-chromes-default-headers-footers-in-headless-print-to-pdf/61505235#61505235>

Here is a node.js package that gives you the capability to programmatically print without headers

> **[chrome-headless-render-pdf](https://www.npmjs.com/package/chrome-headless-render-pdf)**
>
> \`\`\` chrome-headless-render-pdf \[OPTIONS\] --url=URL --pdf=OUTPUT-FILE \[--url=URL2 --pdf=OUTPUT-FILE2\] ... Options: --help this screen --url url to load, for local files use: file:///path/to/file --pdf...

Quote from that page

> # Motivation
> 
> google-chrome currently have option to render pdf files when used with headless option. But this option contains hardcoded adding header and footer to page rendering it unusable for pdf generation. This module allows to generate it without those elements.

Here is the [github project](https://github.com/Szpadel/chrome-headless-render-pdf)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 10, 2024, 5:34pm UTC](https://forums.powershell.org/t/configure-printer-settings/20945/5 "2024-02-10T17:34:07Z")

</div>

Closed on February 10, 2024, 5:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
