Filename of printed web page defaults to script name
t = http://www.example.com/pagename.php?var ... ar2=value2
n = content-type: application/octet-stream; content-disposition: attachment; filename: "data.pdf"
n = content-type: application/octet-stream; content-disposition: attachment; filename: "data.pdf"
-
- Posts: 1565
- Joined: Thu May 23, 2013 7:19 am
Hi,
This is a browser thing, not something we can control via doPDF.
For example, Internet Explorer will send as filename for doPDF to use the url of the printed page. So in your example the name of the pdf would be something like www_example_com_pagename.php_var1=value1.pdf (it replaces some characters that might not be allowed by Windows when creating the file).
On the other hand, FireFox sends as filename for doPDF to use the title of the page.
So there's not much we can do.
This is a browser thing, not something we can control via doPDF.
For example, Internet Explorer will send as filename for doPDF to use the url of the printed page. So in your example the name of the pdf would be something like www_example_com_pagename.php_var1=value1.pdf (it replaces some characters that might not be allowed by Windows when creating the file).
On the other hand, FireFox sends as filename for doPDF to use the title of the page.
So there's not much we can do.
Follow us to stay updated:
- Newsletter (get a discount for subscribing): https://www.dopdf.com/newsletter.html
- Facebook: https://www.facebook.com/dopdf
- Twitter: https://twitter.com/dopdf
- Linkedin: https://www.linkedin.com/showcase/dopdf