When I use DrawToWeb("test.pdf") from my web page named create.aspx and then click the disk icon to save the pdf to my local drive it defaults the pdf name to create.pdf. How do I get it to default to the name I pass into DrawToWeb()?
DrawToWeb and PDF name
Re: DrawToWeb and PDF name
Support · Jul 22, 2013Hello,
When the PDF is saved from the Adobe Reader browser plug-in, it will automatically inherit the file name of the aspx page as the name of the PDF document. In order to have control over the file name while saving the PDF, you will have to use the overloaded DrawToWeb constructor that takes file name and also forces the user to download the file by setting the forceDownload parameter to true.
public void DrawToWeb(string downloadAsFileName, bool forceDownload)
Thanks,
ceTe Software Support Team.