当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 如题! ......
 ·一个对话框程序写不出来了    »显示摘要«
    摘要: 大概意思是这样的,在<form></form>里面有个<textarea>边上有个按钮,点击按钮以后跳了一个对话框,里面有复选框的内容,然后选择自己想要的内容,按对话框确定,同时,这个对话框自动关闭,然后在<textarea>中写上复选的内容,就是这个意思,不知道哪个地方有这样参考的样子,谢谢。 ......


####求Windows下读取PDF中文的Java包以及实现代码,项目用,不胜感激####

PDFBOX:  
  网上的代码都是错的,不过可以自己写,但是最大的问题是不支持中文,同时也没有什么很好的解决办法。  
   
  xPDF:在Linux/Unix下使用可以有效的避免中文的问题,但是在Windows下使用就没有那么幸运了,官方提供的中文包都是Linux下的,不能在Windows下使用。  
   
  iText:主要用来生成PDF的Java包,我看到其中也有“PdfReader”方法,但是其中文化的问题如何解决?性能如何?有没有具体的实现代码?  
   
  其实我的要求很简单,就是把中文PDF中的内容读出来,不用格式化,读出来之后放到搜索引擎中去建索引,难道上天真的没有好生之德》这点小技术问题也要折磨我?????

NO.1   作者: pdw2009

看看     PDF-bean   吧.

NO.2   作者: blackdreamzg

iTextAsian.jar

NO.3   作者: layueer

up

NO.4   作者: OnlyFor_love

路过。。。。。。。。。。。。。。  
   
  楼主加油啊

NO.5   作者: zhkchi

<%@  
  page   import="java.io.*,  
    com.lowagie.text.*,  
    com.lowagie.text.pdf.*"  
  %><%  
  //  
  //   Template   JSP   file   for   iText  
  //   by   Tal   Liron  
  //  
   
  response.setContentType(   "application/pdf"   );  
   
  //   step   1:   creation   of   a   document-object  
  Document   document   =   new   Document();  
   
  //   step   2:  
  //   we   create   a   writer   that   listens   to   the   document  
  //   and   directs   a   PDF-stream   to   a   temporary   buffer  
   
  ByteArrayOutputStream   buffer   =   new   ByteArrayOutputStream();  
  PdfWriter.getInstance(   document,   buffer   );  
   
  //   step   3:   we   open   the   document  
  document.open();  
   
  //   step   4:   we   add   a   paragraph   to   the   document  
  document.add(new   Paragraph("Hello   World"));  
   
  //   step   5:   we   close   the   document  
  document.close();  
   
  //   step   6:   we   output   the   writer   as   bytes   to   the   response   output  
  DataOutput   output   =   new   DataOutputStream(   response.getOutputStream()   );  
  byte[]   bytes   =   buffer.toByteArray();  
  response.setContentLength(bytes.length);  
  for(   int   i   =   0;   i   <   bytes.length;   i++   )   {   output.writeByte(   bytes[i]   );   }  
  %>  
  ---------  
  iText的  
 

NO.6   作者: ker79

iTextAsian.jar

NO.7   作者: liushui05

mark学习

NO.8   作者: samkuang

up


    摘要: 有两个表,其中的字段是完全一样的。两个表中都有记录。 如何将a表中的记录放到b表中(如果b表中已经存在a表中相同主键的记录则不插入)。 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE