问题描述
我创建了pdf文件。我想根据用户输入命名pdf文件。
例如,如果用户输入他的名字为John,那么pdf文件名应该是John.pdf,它应该在新窗口中打开。
我的代码:
pdf1是要存储所有pdf文件的文件夹。
Response.Write(< script type = ''text / javascript''>);
Response.Write(window.open(''pdf1 / AalimAdmission.pdf'',''_ blank''));
Response.Write(< / script>);
i created pdf file. i want to name the pdf file based on user input.
eg, if user types his first name as John, then the pdf file name should be John.pdf and it should be opened in new window.
My code:
pdf1 is the folder where all the pdf files to be stored.
Response.Write("<script type=''text/javascript''>");
Response.Write("window.open(''pdf1/AalimAdmission.pdf'',''_blank'')");
Response.Write("</script>");
这篇关于pdf文件名基于用户输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!