从iframe内容中显示的文件打印pdf版本 [英] Printing the pdf version from the files showed in the iframe content

查看:387
本文介绍了从iframe内容中显示的文件打印pdf版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位大家好!


我有一个页面index.html,其中包含一张iframe,其中包含一张照片001.jpg我需要做的是打印001,pdf和001,pdf。存储在pdf /文件夹中的那张照片的版本


我该如何使用JavaScript?我不是程序员我只需要得到一些规则然后我就可以使它工作。


非常感谢你!

Hello everybody!

I have a page index.html with a iframe that contains a photo "001.jpg" and what I need to do is to print the "001,pdf" version of that photo stored in a pdf/ folder

HOW should I do that with JavaScript? Im not a programmer I just need to get some rules then I can make it works.

Thank you verymuch!

推荐答案

你不能直接打印,但你可以使用隐藏的iframe ...通过设置src-attrib ...加载相应的pdf ...然后使用窗口打印方法调用打印对话框...


亲切的问候
you cannot directly print but you might use a hidden iframe ... load the corresponding pdf to it by setting the src-attrib ... and then use the window print method to call the print dialog ...

kind regards


有趣的方法,只是我不知道该怎么做
Interesting method, just that I dont know how to do that


你想在那里改进什么? :)


你用''做'代替''改进''...所以你有什么问题?
what do you want to improve there? :)

you replaced ''improve'' with ''do'' ... so with what would you have problems?


这篇关于从iframe内容中显示的文件打印pdf版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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