如何在netbeans中的文本字段中显示pdf [英] how to display a pdf in a textfield in netbeans

查看:120
本文介绍了如何在netbeans中的文本字段中显示pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的表单设计中有一个按钮和文本字段,单击按钮它应该打开Windows资源管理器并让用户选择一个pdf,并且所选的pdf必须显示在textfeild中。我怎样才能实现这个

i hava a button and a text feild in my form design on clicking the button it should open windows explorer and let user select a pdf and the selected pdf must be displayed in the textfeild. how can i acheive this

推荐答案

文本字段都不能显示PDF。这只是一个错误的想法。您不是在询问如何在文本字段中显示TIFF图像,对吧?那你为什么要问PDF呢?这基本上是一回事。 PDF不是文字。根本不是文字。差远了。只要忘记它。



如果你解释你的最终目标,你的场景,那么你可以获得更多的帮助。只要忘记文本字段,或忘记PDF,或两者兼而有之。 :-)



是的,在某些情况下,您可以将某些PDF的某些部分转换为文本。但结果不是PDF。如果这对您有用,您可以朝这个方向努力:找到一个或另一个开源PDF阅读器,依此类推......



-SA
None of the "text fields", whatever it is, can display PDF. This is just a wrong idea. You are not asking how do display, say, TIFF image in the text field, right? Then why are you asking about PDF? This is, essentially, the same thing. PDF is not text. It is not text at all. Not even close. Just forget it.

Perhaps you can get more help if you explain your ultimate goals, your scenario, something like that. Only either forget about "text fields", or forget PDF, or both. :-)

Yes, in some cases, you can convert some part of some PDF to text. But the result won't be PDF. If that could be useful for you, you can work in this direction: find one or another open-source PDF reader, and so on…

—SA


Rahul Ramakrishnan写道:
Rahul Ramakrishnan write:



ohhh i'对不起..我正在做几个任务,我完全糊涂了。我想要的是在单击按钮时在面板中显示pdf。当我点击它显示打开Windows资源管理器的按钮后,从那里选择一个pdf它应该显示在面板中。


ohhh i'm sorry.. i was working on few assignments and i got totally confused. what i want is to display a pdf in a panel when the button is clicked. when i click the button it show open windows explorer, from there after choosing a pdf it should be displayed in the panel.

请参阅:

http://plugins.netbeans.org/plugin/52568 [ ^ ],

http://stackoverflow.com/questions/14422455/how-to-display-a-pdf-file-using-pdfbox-in-jpanel [<一个href =http://stackoverflow.com/questions/14422455/how-to-display-a-pdf-file-using-pdfbox-in-jpanel\"target =_ blanktitle =New Window> ^ ]。



-SA

Please see:
http://plugins.netbeans.org/plugin/52568[^],
http://stackoverflow.com/questions/14422455/how-to-display-a-pdf-file-using-pdfbox-in-jpanel[^].

—SA


这篇关于如何在netbeans中的文本字段中显示pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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