Setting default Save As when the User saves.

Setting default Save As when the User saves.

Forum member · May 18, 2006
The User enters query parameters into an ASP.NET page and hits Submit. The response is shown in a DynamicPdf page using DisplayToWeb(). Works well. Now the User wants to save the PDF file to disk. One of the query parameters is ideal for a default Save As name. Can this be set in the code?

Re: Setting default Save As when the User saves.

Support · May 18, 2006
Hello, The filename you are passing to the DrawToWeb method will be effective only if the document is to be downloaded: public Void DrawToWeb(Page page, String downloadAsFileName) public Void DrawToWeb(Page page, String downloadAsFileName, Boolean forceDownload) The String that you pass into the DrawToWeb is used only if a user right clicks on the link to your PDF and does a "Save Target As..." or if you force the user to download the file by setting the ForceDownload to true. But other than that you can not control the name of the file when saving it in acrobat. Thanks, ceTe Software Support Team