|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.pdf.parser.PdfContentStreamProcessor
public abstract class PdfContentStreamProcessor
Processor for a PDF content Stream.
Constructor Summary | |
---|---|
PdfContentStreamProcessor()
Creates a new PDF Content Stream Processor. |
Method Summary | |
---|---|
void |
displayPdfString(PdfString string,
float tj)
Displays text. |
abstract void |
displayText(java.lang.String text,
Matrix nextTextMatrix)
Displays text. |
Matrix |
getCurrentTextLineMatrix()
Returns the current line matrix. |
Matrix |
getCurrentTextMatrix()
Returns the current text matrix. |
float |
getStringWidth(java.lang.String string,
float tj)
Gets the width of a String. |
GraphicsState |
gs()
Returns the current graphics state. |
void |
invokeOperator(PdfLiteral operator,
java.util.ArrayList operands)
Invokes an operator. |
void |
processContent(byte[] contentBytes,
PdfDictionary resources)
Processes PDF syntax |
void |
reset()
Resets the graphics state stack, matrices and resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdfContentStreamProcessor()
Method Detail |
---|
public void reset()
public GraphicsState gs()
public Matrix getCurrentTextMatrix()
public Matrix getCurrentTextLineMatrix()
public void invokeOperator(PdfLiteral operator, java.util.ArrayList operands)
operator
- the PDF Syntax of the operatoroperands
- a list with operandspublic abstract void displayText(java.lang.String text, Matrix nextTextMatrix)
text
- the text that needs to be displayednextTextMatrix
- a text matrixpublic float getStringWidth(java.lang.String string, float tj)
string
- the string that needs measuringtj
- text adjustment
public void displayPdfString(PdfString string, float tj)
string
- the text to displaytj
- the text adjustmentpublic void processContent(byte[] contentBytes, PdfDictionary resources)
contentBytes
- the bytes of a content streamresources
- the resources that come with the content stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |