从HTML打印嵌入的PDF [英] Print Embeded PDF from HTML

查看:47
本文介绍了从HTML打印嵌入的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...我想问一下是否有一种方法可以从嵌入的html标签打印pdf吗?您看我已使用此代码嵌入pdf
< embed class =''soa''width =''650''height =''815''id ="plugin" name ="plugin" src ="myPDF.pdf" type ="application/pdf"/> ;

现在,我想使用一个按钮打印该pdf.是否可以使用普通的javascript?还是我们需要服务器端脚本?

好吧,嵌入表单提供了打印并保存"按钮,但是问题是当用户客户端计算机没有安装任何acrobat阅读器时.这意味着他们将没有此按钮.所以我想为他们提供一个打印按钮...但是我不知道该怎么做...请帮助大家...

Hello guys... I would like to ask if there is a way to print a pdf from an embed html tag? You see i have embeded the pdf using this code
<embed class=''soa'' width=''650'' height=''815'' id="plugin" name="plugin" src="myPDF.pdf" type="application/pdf" />

Now i would like to print that pdf using a button. is it possible using plain javascript? or do we need a server side script?

Well the embed form offers a print and save button but the problem is when the user clients computer doesnt have any acrobat reader installed. it means they will not have this button. so i want to provide a print button for them... but i dont know how to accomplish this... please help guys...

推荐答案

请签出这个StackOverflow问题(在问题中您得到了答案):

http://stackoverflow.com/questions/975652/silent-print-a-embedded-pdf [^ ]

附注:我是通过谷歌搜索您的问题标题获得的.这是赞助商链接之后的第一个结果.因此,如果您不懒惰并使用Google搜索,可能会更快地得到答案.
Please check out this StackOverflow question (In the question you got the answer):

http://stackoverflow.com/questions/975652/silent-print-a-embedded-pdf[^]

P.S.: I got this by Googling your question title. And this was the 1st result after sponsored links. So if you were not lazy and Googled it, you could have got the answer faster.


这篇关于从HTML打印嵌入的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆