protected static class AbstractImageAnalyzer.DefaultStreamEngine
extends org.apache.pdfbox.contentstream.PDFStreamEngine
Modifier and Type | Field and Description |
---|---|
protected Integer |
imageIndex
图像索引
|
protected Set<ImageInfo> |
infoSet
图像信息列表
|
protected org.apache.commons.logging.Log |
log
日志
|
protected Integer |
pageIndex
页面索引
|
Constructor and Description |
---|
DefaultStreamEngine(org.apache.commons.logging.Log log)
有参构造
|
Modifier and Type | Method and Description |
---|---|
protected String |
getPosition(org.apache.pdfbox.util.Matrix matrix,
boolean equalWidth,
boolean equalHeight)
获取位置坐标
|
protected void |
processOperator(org.apache.pdfbox.contentstream.operator.Operator operator,
List<org.apache.pdfbox.cos.COSBase> operands)
处理操作标记
|
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
protected org.apache.commons.logging.Log log
protected Integer pageIndex
protected Integer imageIndex
public DefaultStreamEngine(org.apache.commons.logging.Log log)
log
- 日志protected void processOperator(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> operands)
processOperator
in class org.apache.pdfbox.contentstream.PDFStreamEngine
operator
- 操作标记operands
- 标记列表protected String getPosition(org.apache.pdfbox.util.Matrix matrix, boolean equalWidth, boolean equalHeight)
matrix
- 页面矩阵equalWidth
- 宽度相等equalHeight
- 高度相等Copyright © 2024. All rights reserved.