用java编写,将2个PDF格式内容合并成一个,以及将PDF文件转换成TXT文件。这两个问题,大家各抒己见,当然,能附上代码以及思路万分感谢了!!!
解决方案 »
- 初学者遇到问题,求各位大虾帮忙!!!!
- 测试ThreadLocal类在多线程下的运行怎么看不懂了,为什么新建一个线程initialValue()方法就被调用一次?不是仅仅只调用一次的吗?
- html解析的问题,如何发现html标签没有结束
- java中的 从数字1加到100的程序,高手指教···
- 关于inputstream.read(byte buffer[ ])的问题请教大家
- 快疯了
- 如果一个jar包执行需要其他的jar,在manifest文件怎么写呢?
- 哪为可以讲讲Null Exception的产生原因?
- 帮忙看看这个程序,说什么抽象类?
- 求教高手linux下安装jre的问题!!
- java如何读写excel2010(xlsx文件)
- 线程sleep()抛异常问题
然后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]
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
该怎么做才能让该类的功能表达出来?即将文档的内容显示出来?