public class PDFTextObject
extends java.lang.Object
Constructor and Description |
---|
PDFTextObject(java.awt.font.FontRenderContext ctxt)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
start a new text object
|
void |
dddshowText(byte[] pageBytes,
int offset,
int length,
PDFGState gs,
PDFFile file) |
void |
end()
End the text object
|
boolean |
isOpen()
Check if the text object is active.
|
void |
positionText(float x,
float y)
Set text position relative to current line matrix.
|
void |
setTextMatrix(float a,
float b,
float c,
float d,
float e,
float f) |
void |
showText(byte[] pageBytes,
int offset,
int length,
PDFGState gs,
PDFFile file)
Get a glyph vector by decoding the string bytes according to the font encoding,
and calculating spacing using the text parameters in the gstate.
|
void |
showText(byte[] pageBytes,
java.util.List tokens,
PDFGState gs,
PDFFile file)
Like the previous routine, except using a list of strings & spacing adjustments
|
public PDFTextObject(java.awt.font.FontRenderContext ctxt)
public void begin()
public void end()
public boolean isOpen()
public void positionText(float x, float y)
public void setTextMatrix(float a, float b, float c, float d, float e, float f)
public void showText(byte[] pageBytes, int offset, int length, PDFGState gs, PDFFile file)
public void showText(byte[] pageBytes, java.util.List tokens, PDFGState gs, PDFFile file)