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

Rename filename when save as pdf #111

Closed
rassemdev opened this issue Dec 6, 2020 · 1 comment
Closed

Rename filename when save as pdf #111

rassemdev opened this issue Dec 6, 2020 · 1 comment

Comments

@rassemdev
Copy link

When i choose save as pdf, the filename comes up with some name default name. Is there any way i can customize the filename!

@juliyvchirkov
Copy link

juliyvchirkov commented Mar 22, 2021

When i choose save as pdf, the filename comes up with some name default name. Is there any way i can customize the filename!

@rassemdev, just print with separate window instead of iframe and set your own title. A browser will use the title as filename for PDF

    jQuery('#elementToPrint').print({
        iframe : false,
        title : 'My Own Customized PDF name'
    })

This should close the issue #111

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

No branches or pull requests

3 participants