用java编写,将2个PDF格式内容合并成一个,以及将PDF文件转换成TXT文件。这两个问题,大家各抒己见,当然,能附上代码以及思路万分感谢了!!!

解决方案 »

  1.   

    下载 pdfbox
    然后java -jar pdfbox-app-x.y.z.jar PDFMerger <Source PDF files (2 ..n)> <Target PDF file>java -jar pdfbox-app-x.y.z.jar ExtractText [OPTIONS] <PDF file> [Text file]
      

  2.   

    http://www.cnblogs.com/hejycpu/archive/2009/01/19/1378380.html   详细讲解了pdfbox
      

  3.   

    在使用pdfbox的时候,为什么老出现:
    Usage: java -jar pdfbox-app-x.y.z.jar ExtractText [OPTIONS] <PDF file> [Text File]
      -password  <password>        Password to decrypt document
      -encoding  <output encoding> (ISO-8859-1,UTF-16BE,UTF-16LE,...)
      -console                     Send text to console instead of file
      -html                        Output in HTML format instead of raw text
      -sort                        Sort the text before writing
      -ignoreBeads                 Disables the separation by beads
      -force                       Enables pdfbox to ignore corrupt objects
      -debug                       Enables debug output about the time consumption of every stage
      -startPage <number>          The first page to start extraction(1 based)
      -endPage <number>            The last page to extract(inclusive)
      -nonSeq                      Enables the new non-sequential parser
      <PDF file>                   The PDF document to use
      [Text File]                  The file to write the text to
     该怎么做才能让该类的功能表达出来?即将文档的内容显示出来?
      

  4.   

    是用eclipse做的……源代码没问题,但怎么显示? 我这个菜鸟不太会,是运行程序就行么还是怎么弄?