I am generating a PDF using DrawToWeb. I give it the downloadAsFileName parameter, but then when the PDF is generated and I click on the icon to save the file, the name that comes up is Default.pdf (the page is Default.aspx).
Am I doing something wrong? My code is:
document.DrawToWeb("Test1.pdf");
I would expect to see "Test1.pdf" in the Windows Save dialogue.
It would be nice if this would work, so our clients would not have to figure out a name to save it as.
Thanks,
Cynthia
downloadAsFileName not working
Re: downloadAsFileName not working
Support · Apr 8, 2009Hello Cynthia,
Please use the following overloaded DrawToWeb method and that will display the desired file name when customer saves the PDF:
document.DrawToWeb( "MyDocument.pdf", true );
Thanks,
ceTe Software Support Team
Re: downloadAsFileName not working
Forum member · Apr 8, 2009But then they get a download dialogue when the file is created, and if they pick "open" instead of "save", they can't save the file to disk (the save icon is greyed out).
I want them to be able to view the file in the browser and then be able to save it using the "downloadAsFileName" name. Is that not possible?
Cynthia
Re: downloadAsFileName not working
Support · Apr 9, 2009Hello Cynthia,
We are able to see the save button in the Acrobat Reader without any problem when using the DrawToWeb method with forced download parameter as true. What reader are you using? Also what version of reader are you using? Can you please try reinstalling the reader and see if it solves your problem?
Thanks,
ceTe Software Support Team.
Re: downloadAsFileName not working
Forum member · Apr 9, 2009I am using Acrobat Professional version 8.1.3. Maybe it's a quirk of the Professional edition. I will try it at home where I have regular Acrobat, and let you know what I see. If it's only a problem with Professional, I won't worry about it -- most of our clients will not be using that.
Thanks,
Cynthia
Re: downloadAsFileName not working
Forum member · Apr 14, 2009Hi -- I tried it with Acrobat Reader (version 8.something) at home, and the "save as" icon did appear even when using the force download parameter. When I used the icon to save the file to disk, it did come up with the correct name. So I guess that was just a quirk of Acrobat Professional.