public class DocumentAnalyzer extends AbstractAnalyzer implements Closeable
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
| 限定符和类型 | 字段和说明 |
|---|---|
protected AbstractBookmarkAnalyzer |
bookmarkAnalyzer
书签分析器
|
protected AbstractCommentAnalyzer |
commentAnalyzer
评论分析器
|
protected AbstractFormAnalyzer |
formAnalyzer
表单分析器
|
protected AbstractImageAnalyzer |
imageAnalyzer
图像分析器
|
protected AbstractTextAnalyzer |
textAnalyzer
文本分析器
|
document, log| 构造器和说明 |
|---|
DocumentAnalyzer(Document document)
有参构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
Set<BookmarkInfo> |
analyzeBookmark(int... bookmarkIndexes)
分析书签
|
Set<CommentInfo> |
analyzeComment(int... pageIndexes)
分析评论
|
Set<FormFieldInfo> |
analyzeForm(int... pageIndexes)
分析表单
|
Set<ImageInfo> |
analyzeImage(int... pageIndexes)
分析图像
|
Set<TextInfo> |
analyzeText(int... pageIndexes)
分析文本
|
void |
close()
关闭
|
protected void |
process(BiConsumer<Integer,org.apache.pdfbox.pdmodel.PDPage> consumer,
int[] pageIndexes)
处理
|
getDocumentprotected AbstractTextAnalyzer textAnalyzer
protected AbstractCommentAnalyzer commentAnalyzer
protected AbstractImageAnalyzer imageAnalyzer
protected AbstractFormAnalyzer formAnalyzer
protected AbstractBookmarkAnalyzer bookmarkAnalyzer
public DocumentAnalyzer(Document document)
document - 文档public Set<TextInfo> analyzeText(int... pageIndexes)
pageIndexes - 页面索引public Set<CommentInfo> analyzeComment(int... pageIndexes)
pageIndexes - 页面索引public Set<ImageInfo> analyzeImage(int... pageIndexes)
pageIndexes - 页面索引public Set<FormFieldInfo> analyzeForm(int... pageIndexes)
public Set<BookmarkInfo> analyzeBookmark(int... bookmarkIndexes)
bookmarkIndexes - 书签索引public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableprotected void process(BiConsumer<Integer,org.apache.pdfbox.pdmodel.PDPage> consumer, int[] pageIndexes)
consumer - 消费者pageIndexes - 页面索引Copyright © 2024. All rights reserved.