de.intarsys.pdf.content.text
Class CSTextSearcher
java.lang.Object
de.intarsys.pdf.content.CSDeviceAdapter
de.intarsys.pdf.content.CSBasicDevice
de.intarsys.pdf.content.CSTextDevice
de.intarsys.pdf.content.text.CSCharacterParser
de.intarsys.pdf.content.text.CSTextSearcher
- All Implemented Interfaces:
- ICSDevice, ICSDeviceFeatures
public class CSTextSearcher
- extends CSCharacterParser
A simple text search utility.
| Methods inherited from class de.intarsys.pdf.content.CSTextDevice |
pathClipEvenOdd, pathClipNonZero, pathClose, pathCloseFillStrokeEvenOdd, pathCloseFillStrokeNonZero, pathCloseStroke, pathEnd, pathFillEvenOdd, pathFillNonZero, pathFillStrokeEvenOdd, pathFillStrokeNonZero, pathStroke, penCurveToC, penCurveToV, penCurveToY, penLineTo, penMoveTo, penRectangle |
| Methods inherited from class de.intarsys.pdf.content.CSDeviceAdapter |
close, compatibilityBegin, compatibilityEnd, doShading, doXObject, getDeviceTransform, getGraphicsState, getInterpreter, inlineImage, markedContentBegin, markedContentBeginProperties, markedContentEnd, markedContentPoint, markedContentPointProperties, restoreState, saveState, setDeviceTransform, setExtendedState, setFlatnessTolerance, setLineCap, setLineDash, setLineJoin, setLineWidth, setMiterLimit, setNonStrokeColorCMYK, setNonStrokeColorGray, setNonStrokeColorRGB, setNonStrokeColorSpace, setNonStrokeColorValues, setNonStrokeColorValues, setRenderingIntent, setStrokeColorCMYK, setStrokeColorGray, setStrokeColorRGB, setStrokeColorSpace, setStrokeColorValues, setStrokeColorValues, supportsColorSpace, supportsExtendedState, supportsFont, supportsInlineImage, supportsPattern, supportsProperties, supportsShading, supportsXObject, textBegin, textEnd, textLineMove, textLineNew, textMove, textMoveTo, textSetCharSpacing, textSetHorizontalScaling, textSetLeading, textSetRenderingMode, textSetRise, textSetWordSpacing, textShow, textShow, textT3SetGlyphWidth, textT3SetGlyphWidthBB, transform |
FLOATING_CONTEXT_LENGTH
public static int FLOATING_CONTEXT_LENGTH
CSTextSearcher
public CSTextSearcher()
getHits
public List getHits()
getSearchString
public String getSearchString()
isIgnoreCase
public boolean isIgnoreCase()
open
public void open(ICSInterpreter pInterpreter)
- Description copied from interface:
ICSDevice
- Open the device for use by
interpreter.
- Specified by:
open in interface ICSDevice- Overrides:
open in class CSBasicDevice
setIgnoreCase
public void setIgnoreCase(boolean ignoreCase)
setSearchString
public void setSearchString(String searchString)
textSetFont
public void textSetFont(COSName name,
PDFont font,
float size)
- Description copied from interface:
ICSDevice
- Set the current font and size.
PDF graphics operator "Tf"
- Specified by:
textSetFont in interface ICSDevice- Overrides:
textSetFont in class CSDeviceAdapter
- Parameters:
name - The logical name of the resource in the PDResourcesfont - The new PDFontsize - The new font size (scaling)
textSetTransform
public void textSetTransform(float a,
float b,
float c,
float d,
float e,
float f)
- Description copied from interface:
ICSDevice
- Set the text transformation matrix. Both the text matrix and the text
line matrix are set to the new values.
PDF graphics operator "Tm"
- Specified by:
textSetTransform in interface ICSDevice- Overrides:
textSetTransform in class CSDeviceAdapter
- Parameters:
a - operand 1,1 in the matrixb - operand 1,2 in the matrixc - operand 2,1 in the matrixd - operand 2,2 in the matrixe - operand 3,1 in the matrixf - operand 3,2 in the matrix
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.