Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable option in browser window to automatically add headers and footers #715

Closed
Dvik opened this issue Jul 10, 2024 · 1 comment
Closed
Labels

Comments

@Dvik
Copy link

Dvik commented Jul 10, 2024

Is there a way i can pass a prop to make sure the browser print window doesn't check the option "Headers and Footers" by default?

@MatthewHerbst
Copy link
Owner

MatthewHerbst commented Jul 10, 2024

Unfortunately this is not controllable from JS to my knowledge. The window.print API doesn't take any options, so any control we have is generally limited to what can be done with CSS. We do add some CSS in that generally removes these by setting the margin, so if you're passing your own CSS you should be able to replicate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants