com.lowagie.text.pdf.parser
public abstract class PdfContentStreamProcessor extends Object
Since: 2.1.4
| Nested Class Summary | |
|---|---|
| static class | PdfContentStreamProcessor.BeginText
A content operator implementation (BT). |
| static class | PdfContentStreamProcessor.EndText
A content operator implementation (ET). |
| static class | PdfContentStreamProcessor.ModifyCurrentTransformationMatrix
A content operator implementation (cm). |
| static class | PdfContentStreamProcessor.MoveNextLineAndShowText
A content operator implementation ('). |
| static class | PdfContentStreamProcessor.MoveNextLineAndShowTextWithSpacing
A content operator implementation ("). |
| static class | PdfContentStreamProcessor.PopGraphicsState
A content operator implementation (Q). |
| static class | PdfContentStreamProcessor.ProcessGraphicsStateResource
A content operator implementation (gs). |
| static class | PdfContentStreamProcessor.PushGraphicsState
A content operator implementation (q). |
| static class | PdfContentStreamProcessor.SetTextCharacterSpacing
A content operator implementation (Tc). |
| static class | PdfContentStreamProcessor.SetTextFont
A content operator implementation (Tf). |
| static class | PdfContentStreamProcessor.SetTextHorizontalScaling
A content operator implementation (Tz). |
| static class | PdfContentStreamProcessor.SetTextLeading
A content operator implementation (TL). |
| static class | PdfContentStreamProcessor.SetTextRenderMode
A content operator implementation (Tr). |
| static class | PdfContentStreamProcessor.SetTextRise
A content operator implementation (Ts). |
| static class | PdfContentStreamProcessor.SetTextWordSpacing
A content operator implementation (Tw). |
| static class | PdfContentStreamProcessor.ShowText
A content operator implementation (Tj). |
| static class | PdfContentStreamProcessor.ShowTextArray
A content operator implementation (TJ). |
| static class | PdfContentStreamProcessor.TextMoveNextLine
A content operator implementation (T*). |
| static class | PdfContentStreamProcessor.TextMoveStartNextLine
A content operator implementation (Td). |
| static class | PdfContentStreamProcessor.TextMoveStartNextLineWithLeading
A content operator implementation (TD). |
| static class | PdfContentStreamProcessor.TextSetTextMatrix
A content operator implementation (Tm). |
| Field Summary | |
|---|---|
| Stack | gsStack Stack keeping track of the graphics state. |
| Map | operators A map with all supported operators operators (PDF syntax). |
| PdfDictionary | resources Resources for the content stream. |
| Matrix | textLineMatrix Text line matrix. |
| Matrix | textMatrix Text matrix. |
| Constructor Summary | |
|---|---|
| PdfContentStreamProcessor()
Creates a new PDF Content Stream Processor. | |
| Method Summary | |
|---|---|
| String | decode(PdfString in)
Decodes a PdfString (which will contain glyph ids encoded in the font's encoding)
based on the active font, and determine the unicode equivalent |
| void | displayPdfString(PdfString string, float tj)
Displays text. |
| abstract void | displayText(String text, Matrix nextTextMatrix)
Displays text. |
| Matrix | getCurrentTextLineMatrix()
Returns the current line matrix. |
| Matrix | getCurrentTextMatrix()
Returns the current text matrix. |
| float | getStringWidth(String string, float tj)
Gets the width of a String. |
| GraphicsState | gs()
Returns the current graphics state. |
| void | invokeOperator(PdfLiteral operator, ArrayList operands)
Invokes an operator. |
| void | populateOperators()
Loads all the supported graphics and text state operators in a map. |
| void | processContent(byte[] contentBytes, PdfDictionary resources)
Processes PDF syntax |
| void | reset()
Resets the graphics state stack, matrices and resources. |
Parameters: in the String that needs to be encoded
Returns: the encoded String
Since: 2.1.7
Parameters: string the text to display tj the text adjustment
Parameters: text the text that needs to be displayed nextTextMatrix a text matrix
Returns: the line matrix
Since: 2.1.5
Returns: the text matrix
Since: 2.1.5
Parameters: string the string that needs measuring tj text adjustment
Returns: the width of a String
Returns: the graphics state
Parameters: operator the PDF Syntax of the operator operands a list with operands
Parameters: contentBytes the bytes of a content stream resources the resources that come with the content stream