Dear all,
i use the function Docu.DrawToWeb(Me) to post my pdf file in a browser window. all works fine but after press the save button the pdf filename (abcd.pdf) has the same name of my aspx filename (abcd.aspx). i would like change the the abcd.pdf file in my code (for example to 1234.pdf).
It is possible?
Best regards
change dpf filename
Re: change dpf filename
Support · Apr 1, 2008Hello,
It is not possible to have control over the "Save a Copy" file name from within Acrobat. It will automatically inherit the filename of the aspx page. In order to have control over the filename while saving the PDF, you will have to use the overloaded DrawToWeb constructor that takes filename and also forces the user to download the file by setting the forceDownload parameter to true; else it is not possible and the default name will be the name of your class.
public Void DrawToWeb(Page page, String downloadAsFileName, Boolean forceDownload)
Thanks,
ceTe Software Support Team.