jPod PDF library

de.intarsys.pdf.content.text
Class CSTextSearcher

java.lang.Object
  extended by de.intarsys.pdf.content.CSDeviceAdapter
      extended by de.intarsys.pdf.content.CSBasicDevice
          extended by de.intarsys.pdf.content.CSTextDevice
              extended by de.intarsys.pdf.content.text.CSCharacterParser
                  extended by de.intarsys.pdf.content.text.CSTextSearcher
All Implemented Interfaces:
ICSDevice, ICSDeviceFeatures

public class CSTextSearcher
extends CSCharacterParser

A simple text search utility.


Field Summary
static int FLOATING_CONTEXT_LENGTH
           
 
Fields inherited from class de.intarsys.pdf.content.CSBasicDevice
THOUSAND
 
Fields inherited from class de.intarsys.pdf.content.CSDeviceAdapter
MAX_STACK_SIZE
 
Constructor Summary
CSTextSearcher()
           
 
Method Summary
 List getHits()
           
 String getSearchString()
           
 boolean isIgnoreCase()
           
 void open(ICSInterpreter pInterpreter)
          Open the device for use by interpreter.
 void setIgnoreCase(boolean ignoreCase)
           
 void setSearchString(String searchString)
           
 void textSetFont(COSName name, PDFont font, float size)
          Set the current font and size.
 void textSetTransform(float a, float b, float c, float d, float e, float f)
          Set the text transformation matrix.
 
Methods inherited from class de.intarsys.pdf.content.text.CSCharacterParser
getBounds, setBounds
 
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.CSBasicDevice
textShow
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLOATING_CONTEXT_LENGTH

public static int FLOATING_CONTEXT_LENGTH
Constructor Detail

CSTextSearcher

public CSTextSearcher()
Method Detail

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 PDResources
font - The new PDFont
size - 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 matrix
b - operand 1,2 in the matrix
c - operand 2,1 in the matrix
d - operand 2,2 in the matrix
e - operand 3,1 in the matrix
f - operand 3,2 in the matrix

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.