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

PDF name is always "render" can we change it? #152

Open
Valnexus opened this issue Mar 3, 2021 · 2 comments
Open

PDF name is always "render" can we change it? #152

Valnexus opened this issue Mar 3, 2021 · 2 comments

Comments

@Valnexus
Copy link

Valnexus commented Mar 3, 2021

Hi, I have everything set up and all works great, but the files are always called "render" and when you want to save the file name is "render" too, how can I change the file name?
And I don't mean "attachmentName" I am talking about the pdf file name that is open in a new tab, I want it to say "David's CV File", but they are all "render" is there a parameter to change that?

@cdwiegand
Copy link

cdwiegand commented Apr 11, 2021

Not sure that there is - when it's set as a downloaded attachment, you can specify the name in the Content-Disposition header. But if it's inline (which it is if it's in a browser tab), the filename isn't an option, and it would use the "filename" from the url - which in this case ends in render, so it uses render as the title (since it's not an HTML document). Note: I'm not the developer, just someone who uses the software and is a developer.

@Mizar01
Copy link

Mizar01 commented Sep 14, 2021

Actually the best and recommended way to use this tool is to call "/api/render" in a background service (your server page). The stream of bytes returned can then be treated as you like, with a redirect to a new page and a filename or whatsoever.

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