您可以使用PDFBox在Java中的关键字后反复拆分PDF吗?

发布于 2025-02-10 02:27:04 字数 1070 浏览 1 评论 0原文

我想通过搜索一个ceartain Word,类似于Java.lang.String#split(String)使用 pdfbox

有没有办法将文档a

a
这是一条线,
这是另一个行,
这是我要用于拆分的行,
这是常规行,
这是常规行,
我想在这里做另一个 行拆分
这应该是第三个文档的第一行,

因此,如果我使用参数值“ split”,它将被分为三个文档:

A.0
这是一行,
这是另一行
,这是行i想要用于拆分
A.1
常规行,
是一条常规
这是一条

I would like to split a PDF into multiple PDFs by searching for a ceartain word, similar to java.lang.String#split(String) using PDFBox.

Is there a way to split a document A

A
This is a line
This is another line
This is the line I want to use for the split
This is a regular line again
This is a regular line as well
Here I'd like to do another split
This should be the first line of the third document

So that if I'd used the parameter value "split" it would be split into three documents like so:

A.0
This is a line
This is another line
This is the line I want to use for the split
A.1
This is a regular line again
This is a regular line as well
Here I'd like to do another split
A.2
This should be the first line of the third document

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文