且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在netbeans中的文本字段中显示pdf

更新时间:2023-01-30 22:23:10

文本字段都不能显示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://***.com/questions/14422455/how-to-display-a-pdf-file-using-pdfbox-in-jpanel [ ^ ]。



-SA

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

—SA