Packageorg.purepdf.pdf
Classpublic class PdfChunk
InheritancePdfChunk Inheritance it.sephiroth.utils.ObjectHash



Public Properties
 PropertyDefined By
  changeLeading : Boolean
[read-only]
PdfChunk
  color : RGBColor
[read-only] Returns the color of this Chunk.
PdfChunk
  font : PdfFont
[read-only]
PdfChunk
  image : ImageElement
[read-only]
PdfChunk
  imageOffsetX : Number
PdfChunk
  imageOffsetY : Number
PdfChunk
  keysAttributes : HashMap
[static] [read-only]
PdfChunk
  keysNoStroke : HashMap
[static] [read-only]
PdfChunk
  length : int
[read-only]
PdfChunk
  lengthUtf32 : int
[read-only]
PdfChunk
  width : Number
[read-only]
PdfChunk
Protected Properties
 PropertyDefined By
  attributes : HashMap
PdfChunk
  baseFont : BaseFont
PdfChunk
  _changeLeading : Boolean = false
PdfChunk
  encoding : String = Cp1252
PdfChunk
  _font : PdfFont
PdfChunk
  _image : ImageElement
PdfChunk
  newlineSplit : Boolean
PdfChunk
  noStroke : HashMap
PdfChunk
  _offsetX : Number
PdfChunk
  _offsetY : Number
PdfChunk
  splitCharacter : ISplitCharacter
PdfChunk
  value : String
PdfChunk
Public Methods
 MethodDefined By
  
PdfChunk
  
[static]
PdfChunk
  
fromString(string:String, other:PdfChunk):PdfChunk
[static]
PdfChunk
  
getAttribute(name:String):Object
PdfChunk
  
getCharWidth(c:int):Number
PdfChunk
  
getTextRise():Number
PdfChunk
  
Gets the Unicode equivalent to a CID
PdfChunk
  
isAttribute(name:String):Boolean
PdfChunk
  
isExtSplitCharacter(start:int, current:int, end:int, cc:Vector.<int>, ck:Vector.<PdfChunk>):Boolean
PdfChunk
  
PdfChunk
  
isImage():Boolean
PdfChunk
  
isNewlineSplit():Boolean
PdfChunk
  
isSeparator():Boolean
PdfChunk
  
Tells you if this string is in Chinese, Japanese, Korean or Identity-H.
PdfChunk
  
isStroked():Boolean
PdfChunk
  
isTab():Boolean
PdfChunk
  
noPrint(c:int):Boolean
[static]
PdfChunk
  
setValue(value:String):void
PdfChunk
  
split(width:Number):PdfChunk
Splits this PdfChunk if it's too long for the given width.
PdfChunk
  
toString():String
PdfChunk
  
Trim the first space and return the width of the space trimmed
PdfChunk
  
trimLastSpace():Number
Trim the last space.
PdfChunk
  
truncate(width:Number):PdfChunk
PdfChunk
Protected Methods
 MethodDefined By
  
getWord(text:String, start:int):int
PdfChunk
Property Detail
_changeLeadingproperty
protected var _changeLeading:Boolean = false

_fontproperty 
protected var _font:PdfFont

_imageproperty 
protected var _image:ImageElement

_offsetXproperty 
protected var _offsetX:Number

_offsetYproperty 
protected var _offsetY:Number

attributesproperty 
protected var attributes:HashMap

baseFontproperty 
protected var baseFont:BaseFont

changeLeadingproperty 
changeLeading:Boolean  [read-only]


Implementation
    public function get changeLeading():Boolean
colorproperty 
color:RGBColor  [read-only]

Returns the color of this Chunk.


Implementation
    public function get color():RGBColor
encodingproperty 
protected var encoding:String = Cp1252

fontproperty 
font:PdfFont  [read-only]


Implementation
    public function get font():PdfFont
imageproperty 
image:ImageElement  [read-only]


Implementation
    public function get image():ImageElement
imageOffsetXproperty 
imageOffsetX:Number


Implementation
    public function get imageOffsetX():Number
    public function set imageOffsetX(value:Number):void
imageOffsetYproperty 
imageOffsetY:Number


Implementation
    public function get imageOffsetY():Number
    public function set imageOffsetY(value:Number):void
keysAttributesproperty 
keysAttributes:HashMap  [read-only]


Implementation
    public static function get keysAttributes():HashMap
keysNoStrokeproperty 
keysNoStroke:HashMap  [read-only]


Implementation
    public static function get keysNoStroke():HashMap
lengthproperty 
length:int  [read-only]


Implementation
    public function get length():int
lengthUtf32property 
lengthUtf32:int  [read-only]


Implementation
    public function get lengthUtf32():int
newlineSplitproperty 
protected var newlineSplit:Boolean

noStrokeproperty 
protected var noStroke:HashMap

splitCharacterproperty 
protected var splitCharacter:ISplitCharacter

valueproperty 
protected var value:String

widthproperty 
width:Number  [read-only]


Implementation
    public function get width():Number
Constructor Detail
PdfChunk()Constructor
public function PdfChunk()



Method Detail
adjustLeft()method
pdf_core function adjustLeft(newValue:Number):void

Parameters

newValue:Number

fromChunk()method 
public static function fromChunk(chunk:Chunk, action:PdfAction):PdfChunk

Parameters

chunk:Chunk
 
action:PdfAction

Returns
PdfChunk
fromString()method 
public static function fromString(string:String, other:PdfChunk):PdfChunk

Parameters

string:String
 
other:PdfChunk

Returns
PdfChunk
getAttribute()method 
public function getAttribute(name:String):Object

Parameters

name:String

Returns
Object
getCharWidth()method 
public function getCharWidth(c:int):Number

Parameters

c:int

Returns
Number
getTextRise()method 
public function getTextRise():Number

Returns
Number
getUnicodeEquivalent()method 
public function getUnicodeEquivalent(c:int):int

Gets the Unicode equivalent to a CID

Parameters

c:int

Returns
int
getWord()method 
protected function getWord(text:String, start:int):int

Parameters

text:String
 
start:int

Returns
int
isAttribute()method 
public function isAttribute(name:String):Boolean

Parameters

name:String

Returns
Boolean
isExtSplitCharacter()method 
public function isExtSplitCharacter(start:int, current:int, end:int, cc:Vector.<int>, ck:Vector.<PdfChunk>):Boolean

Parameters

start:int
 
current:int
 
end:int
 
cc:Vector.<int>
 
ck:Vector.<PdfChunk>

Returns
Boolean
isHorizontalSeparator()method 
public function isHorizontalSeparator():Boolean

Returns
Boolean
isImage()method 
public function isImage():Boolean

Returns
Boolean
isNewlineSplit()method 
public function isNewlineSplit():Boolean

Returns
Boolean
isSeparator()method 
public function isSeparator():Boolean

Returns
Boolean
isSpecialEncoding()method 
public function isSpecialEncoding():Boolean

Tells you if this string is in Chinese, Japanese, Korean or Identity-H.

Returns
Boolean
isStroked()method 
public function isStroked():Boolean

Returns
Boolean
isTab()method 
public function isTab():Boolean

Returns
Boolean
noPrint()method 
public static function noPrint(c:int):Boolean

Parameters

c:int

Returns
Boolean
setValue()method 
public function setValue(value:String):void

Parameters

value:String

split()method 
public function split(width:Number):PdfChunk

Splits this PdfChunk if it's too long for the given width.

Returns if the PdfChunk wasn't truncated.

Parameters

width:Number — a given width

Returns
PdfChunk — the PdfChunk that doesn't fit into the width.
toString()method 
public function toString():String

Returns
String
trimFirstSpace()method 
public function trimFirstSpace():Number

Trim the first space and return the width of the space trimmed

Returns
Number
trimLastSpace()method 
public function trimLastSpace():Number

Trim the last space.

Returns
Number — the width of the space trimmed
truncate()method 
public function truncate(width:Number):PdfChunk

Parameters

width:Number

Returns
PdfChunk