I want to load my pdf file in a web page. The user should not have the provison to save or print the file. the below code opens the pdf file as attachment, but i want to open it directly in the page.
另请提供可以禁用 pdf 菜单栏的任何 Javascript 。
Response.ContentType = "Application/pdf";
Response.AppendHeader("content-disposition", "attachment; filename=" + old_filename + ".pdf");
Response.TransmitFile(Server.MapPath("~/pdf_files/" + old_filename));
Response.End();