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
Type: “PDF” does not change the file name: #12
Comments
Hi there. Thanks for using this library. You are doing nothing wrong. This is indeed a bug which affects |
Thank you so much. I will wait for a solution to the problem. |
The printer which actually generates the pdf is fired by the There is one solution which is not the best and is to change the page title to your file name right before the print job triggers. Afterwards you can set the page title back to what it was. |
Is it worth looking into https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint to change title before print and then move it back to what it was after print has happened. |
@mfsbo could you give it a try to resolve this issue with your suggestion? |
Type: “PDF” does not change the file name:
No matter what is in fileName, the file name is equal to the page title.
Tell me what I'm doing wrong.
Thankyou.
The text was updated successfully, but these errors were encountered: