Package com.ribs.pdf
Class PDFTextObject
java.lang.Object
com.ribs.pdf.PDFTextObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
start a new text objectvoid
dddshowText
(byte[] pageBytes, int offset, int length, PDFGState gs, PDFFile file) void
end()
End the text objectboolean
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
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
Like the previous routine, except using a list of strings & spacing adjustments
-
Constructor Details
-
PDFTextObject
Main constructor.
-
-
Method Details
-
begin
public void begin()start a new text object -
end
public void end()End the text object -
isOpen
public 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. -
positionText
public void positionText(float x, float y) Set text position relative to current line matrix. Used by Td, TD, T*, ', " -
setTextMatrix
public void setTextMatrix(float a, float b, float c, float d, float e, float f) -
showText
Get a glyph vector by decoding the string bytes according to the font encoding, and calculating spacing using the text parameters in the gstate. -
showText
Like the previous routine, except using a list of strings & spacing adjustments -
dddshowText
-