Class PDFTextObject
- java.lang.Object
- 
- com.inductiveautomation.rm.pdf.reader.PDFTextObject
 
- 
 public class PDFTextObject extends java.lang.ObjectRepresents text spacing details that are defined in between BT & ET operation. Only one text object is alive at any given time, and only certain operations are allowed inside a text object.
- 
- 
Constructor SummaryConstructors Constructor Description PDFTextObject(java.awt.font.FontRenderContext ctxt)Main constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()start a new text objectvoiddddshowText(byte[] pageBytes, int offset, int length, PDFGState gs, PDFFile file)voidend()End the text objectbooleanisOpen()Check if the text object is active.voidpositionText(float x, float y)Set text position relative to current line matrix.voidsetTextMatrix(float a, float b, float c, float d, float e, float f)voidshowText(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.voidshowText(byte[] pageBytes, java.util.List tokens, PDFGState gs, PDFFile file)Like the previous routine, except using a list of strings & spacing adjustments
 
- 
- 
- 
Method Detail- 
beginpublic void begin() start a new text object
 - 
endpublic void end() End the text object
 - 
isOpenpublic boolean isOpen() Check if the text object is active. This can be used to raise errors for operations that are only legal within or without a text object.
 - 
positionTextpublic void positionText(float x, float y)Set text position relative to current line matrix. Used by Td, TD, T*, ', "
 - 
setTextMatrixpublic void setTextMatrix(float a, float b, float c, float d, float e, float f)
 - 
showTextpublic 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.
 - 
showTextpublic void showText(byte[] pageBytes, java.util.List tokens, PDFGState gs, PDFFile file)Like the previous routine, except using a list of strings & spacing adjustments
 
- 
 
-