[英]how to replace content of a PDF files either paragraph wise or sentence wise in java.
I have one PDF file. 我有一个PDF文件。 I want to replace few paragraphs of this PDF file by some other text from files like(.doc/ .docx/ .xls). 我想用(.doc / .docx / .xls)等文件中的其他文本替换此PDF文件的几段内容。 how to scan and edit text paragraph wise or sentence wise in the same PDF document. 如何在同一PDF文档中按段或按段扫描和编辑文本。
Thanks alot in advance.. 非常感谢。
You can use PDFBox library ( http://pdfbox.apache.org/ ) to extract the text from PDF and use hssf library to extract the data from word or excel file. 您可以使用PDFBox库( http://pdfbox.apache.org/ )从PDF中提取文本,并使用hssf库从word或excel文件中提取数据。 Then you can do all your manipulations and finally create new PDF doc with the updated text data. 然后,您可以进行所有操作,最后使用更新的文本数据创建新的PDF文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.