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

Feature/ new documentTitle props to set filename for pdf print #245

Merged
merged 6 commits into from
May 16, 2020

Conversation

zb2oby
Copy link
Contributor

@zb2oby zb2oby commented May 6, 2020

Here a PR to add ability to set custom filename when print to pdf file with a new props documentTitle.
It causes a temporary override of the document.title (no other way to do this, print api does not provide a way to ) and reset it after print.

Fixes #243

Copy link
Owner

@MatthewHerbst MatthewHerbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you! Can you please also add the prop to the README?

src/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
@MatthewHerbst MatthewHerbst merged commit 214c530 into MatthewHerbst:master May 16, 2020
@MatthewHerbst
Copy link
Owner

This is published with the just released version 2.8.0-beta.1. I'll release 2.8.0 either later tonight or tomorrow once I have a chance to do more testing.

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

Successfully merging this pull request may close these issues.

default title when print to pdf.
2 participants