Class PDFTextObject
java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFTextObject
Represents 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
- 
Method SummaryModifier and TypeMethodDescriptionvoidbegin()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) voidGet a glyph vector by decoding the string bytes according to the font encoding, and calculating spacing using the text parameters in the gstate.voidLike the previous routine, except using a list of strings & spacing adjustments
- 
Constructor Details- 
PDFTextObjectMain constructor.
 
- 
- 
Method Details- 
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) 
- 
showTextGet a glyph vector by decoding the string bytes according to the font encoding, and calculating spacing using the text parameters in the gstate.
- 
showTextLike the previous routine, except using a list of strings & spacing adjustments
- 
dddshowText
 
-