de.intarsys.pdf.content.text
Class CSTextExtractor
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.CSTextExtractor
- All Implemented Interfaces:
- ICSDevice, ICSDeviceFeatures
public class CSTextExtractor
- extends CSCharacterParser
A still very simple text extraction utility for PDF documents.
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 |
CSTextExtractor
public CSTextExtractor()
getContent
public String getContent()
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
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 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.