org.pdfclown.documents.contents.objects.ShowText Class Reference

Abstract 'show a text string' operation [PDF:1.6:5.3.2]. More...

Inheritance diagram for org.pdfclown.documents.contents.objects.ShowText:
org.pdfclown.documents.contents.objects.Operation org.pdfclown.documents.contents.objects.ContentObject org.pdfclown.documents.contents.objects.ShowAdjustedText org.pdfclown.documents.contents.objects.ShowSimpleText org.pdfclown.documents.contents.objects.ShowTextToNextLine

List of all members.

Classes

interface  IScanner

Public Member Functions

void Scan (ContentScanner.GraphicsState state, IScanner textScanner)
 Executes scanning on this operation.
override void Scan (ContentScanner.GraphicsState state)
 Applies this object to the specified graphics context, updating the specified graphics state.
override string ToString ()
override void WriteTo (IOutputStream stream, Document context)
 Serializes this object to the specified stream.

Static Public Member Functions

static Operation Get (string operator_, IList< PdfDirectObject > operands)
 Gets an operation.

Protected Member Functions

 ShowText (string operator_, IList< PdfDirectObject > operands)
 ShowText (string operator_, params PdfDirectObject[] operands)
 ShowText (string operator_)

Protected Attributes

IList< PdfDirectObjectoperands
string operator_

Properties

IList< PdfDirectObjectOperands [get]
string Operator [get]
abstract byte[] Text [get, set]
 Gets/Sets the encoded text.
virtual IList< object > Value [get, set]
 Gets/Sets the encoded text elements along with their adjustments.

Abstract 'show a text string' operation [PDF:1.6:5.3.2].


Constructor & Destructor Documentation

org.pdfclown.documents.contents.objects.ShowText.ShowText ( string  operator_  )  [protected]
org.pdfclown.documents.contents.objects.ShowText.ShowText ( string  operator_,
params PdfDirectObject[]  operands 
) [protected]
org.pdfclown.documents.contents.objects.ShowText.ShowText ( string  operator_,
IList< PdfDirectObject operands 
) [protected]

Member Function Documentation

static Operation org.pdfclown.documents.contents.objects.Operation.Get ( string  operator_,
IList< PdfDirectObject operands 
) [static, inherited]

Gets an operation.

Parameters:
operator_ Operator.
operands List of operands.
void org.pdfclown.documents.contents.objects.ShowText.Scan ( ContentScanner.GraphicsState  state,
IScanner  textScanner 
)

Executes scanning on this operation.

Parameters:
state Graphics state context.
textScanner Scanner to be notified about text contents. In case it's null, the operation is applied to the graphics state context.

References org.pdfclown.documents.contents.IContentContext.Box, org.pdfclown.documents.contents.objects.ShowTextToNextLine.CharSpace, and org.pdfclown.documents.contents.objects.ShowTextToNextLine.WordSpace.

override void org.pdfclown.documents.contents.objects.ShowText.Scan ( ContentScanner.GraphicsState  state  )  [virtual]

Applies this object to the specified graphics context, updating the specified graphics state.

Parameters:
state Graphics state.

Reimplemented from org.pdfclown.documents.contents.objects.ContentObject.

References org.pdfclown.documents.contents.objects.ShowText.Scan().

Referenced by org.pdfclown.documents.contents.objects.ShowText.Scan().

override string org.pdfclown.documents.contents.objects.Operation.ToString (  )  [inherited]
override void org.pdfclown.documents.contents.objects.Operation.WriteTo ( IOutputStream  stream,
Document  context 
) [virtual, inherited]

Member Data Documentation


Property Documentation

IList<PdfDirectObject> org.pdfclown.documents.contents.objects.Operation.Operands [get, inherited]
string org.pdfclown.documents.contents.objects.Operation.Operator [get, inherited]
abstract byte [] org.pdfclown.documents.contents.objects.ShowText.Text [get, set]

Gets/Sets the encoded text.

Text is expressed in native encoding: to resolve it to Unicode, pass it to the decode method of the corresponding font.

Reimplemented in org.pdfclown.documents.contents.objects.ShowAdjustedText, org.pdfclown.documents.contents.objects.ShowSimpleText, and org.pdfclown.documents.contents.objects.ShowTextToNextLine.

virtual IList<object> org.pdfclown.documents.contents.objects.ShowText.Value [get, set]

Gets/Sets the encoded text elements along with their adjustments.

Text is expressed in native encoding: to resolve it to Unicode, pass it to the decode method of the corresponding font.

Returns:
Each element can be either a byte array or a number:
  • if it's a byte array (encoded text), the operator shows text glyphs;
  • if it's a number (glyph adjustment), the operator inversely adjusts the next glyph position by that amount (that is: a positive value reduces the distance between consecutive glyphs).

Reimplemented in org.pdfclown.documents.contents.objects.ShowAdjustedText.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.

Generated on Sat Feb 9 21:08:35 2013 for PDF Clown 0.1.2 by  doxygen 1.6.3