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

Expose documentTitle option from PrintJS #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frdij
Copy link

@frdij frdij commented Nov 4, 2024

PrintJS has an option documentTitle which wasn't exposed by Blazor.Printing.
While this option does not set default name for PDF when using "Save as PDF" in all browsers, it does in FireFox.
Also, this option does have an effect for all browsers; it changes the title shown in the header and some end-users might want to include headers and footers when printing.

Because this option might not be as useful for everyone, I've didn't add to a constructor of PrintOptions but I do think it's useful to expose documentTitle for those who want to use it.

See also this comment: crabbly/Print.js#696 (comment)

Relates to: #25

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

Successfully merging this pull request may close these issues.

1 participant