简体   繁体   English

在网页上打印pdf

[英]Print pdf in webpage

I have an ASP.net web page embeded a pdf file using the object tag as below: 我有一个ASP.net网页,使用object标记嵌入了pdf文件,如下所示:

    <object data="<%=this.FilePath %>" type="application/pdf" style="width:600px; height:820px; border:solid 1px #888;">
    <embed src="<%=this.FilePath %>" type="application/pdf" />
    </object>

The viewer run good and I assume all client PCs have Adobe Reader installed. 查看器运行良好,我假设所有客户端PC都已安装Adobe Reader。
I want to make a button to simply: 我想制作一个按钮来简单地:

  1. remove the button panel of adobe reader 卸下Adobe Reader的按钮面板
  2. create a button to print the pdf document(using the reader's API or any other method) 创建一个按钮以打印pdf文档(使用阅读器的API或任何其他方法)

That type of customization isn't possible in the Acrobat Reader Plugin AFAIK. 在Acrobat Reader插件AFAIK中无法进行这种类型的自定义。

You can hide the default button panel by adding #toolbar=0 to the url, but the user can just 'unhide' it if he wants. 您可以通过在网址中添加#toolbar=0来隐藏默认按钮面板,但用户可以根据需要“取消隐藏”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM