Packageorg.purepdf.pdf
Classpublic class PdfString
InheritancePdfString Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash



Protected Properties
 PropertyDefined By
 Inheritedbytes : Bytes
PdfObject
  encoding : String = PDF
PdfString
  hexWriting : Boolean
PdfString
 InheritedindRef : PRIndirectReference
PdfObject
  objGen : int
PdfString
  objNum : int = 0
PdfString
  originalValue : String = null
PdfString
 Inheritedtype : int
PdfObject
  value : String
PdfString
Public Methods
 MethodDefined By
  
PdfString($value:*, $encoding:String)
Create a new PdfString
PdfString
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
  
decrypt(reader:PdfReader):void
Decrypt an encrypted PdfString
PdfString
 Inherited
dispose():void
PdfObject
  
[override]
PdfString
 Inherited
PdfObject
 Inherited
getType():int
PdfObject
 Inherited
isArray():Boolean
PdfObject
 Inherited
isBoolean():Boolean
PdfObject
 Inherited
isDictionary():Boolean
PdfObject
  
isHexWriting():Boolean
PdfString
 Inherited
isIndirect():Boolean
PdfObject
 Inherited
isName():Boolean
PdfObject
 Inherited
isNull():Boolean
PdfObject
 Inherited
isNumber():Boolean
PdfObject
 Inherited
isStream():Boolean
Checks if this PdfObject is of the type PdfStream
PdfObject
 Inherited
isString():Boolean
PdfObject
  
setEncoding(enc:String):void
PdfString
  
setHexWriting(hexWriting:Boolean):PdfString
PdfString
 Inherited
Set the indirect reference
PdfObject
  
setObjNum(objNum:int, objGen:int):void
PdfString
  
toPdf(writer:PdfWriter, os:IOutputStream):void
[override]
PdfString
  
toString():String
[override]
PdfString
  
Returns the Unicode String value of this
PdfString
Protected Methods
 MethodDefined By
 Inherited
setContent(content:String):void
PdfObject
Public Constants
 ConstantDefined By
 InheritedARRAY : int = 5
[static]
PdfObject
 InheritedBOOLEAN : int = 1
[static]
PdfObject
 InheritedDICTIONARY : int = 6
[static]
PdfObject
 InheritedINDIRECT : int = 10
[static]
PdfObject
 InheritedNAME : int = 4
[static]
PdfObject
 InheritedNOTHING : String
[static]
PdfObject
 InheritedNULL : int = 8
[static]
PdfObject
 InheritedNUMBER : int = 2
[static]
PdfObject
 InheritedSTREAM : int = 7
[static]
PdfObject
 InheritedSTRING : int = 3
[static]
PdfObject
 InheritedTEXT_PDFDOCENCODING : String = PDF
[static]
PdfObject
 InheritedTEXT_UNICODE : String = UnicodeBig
[static]
PdfObject
Property Detail
encodingproperty
protected var encoding:String = PDF

hexWritingproperty 
protected var hexWriting:Boolean

objGenproperty 
protected var objGen:int

objNumproperty 
protected var objNum:int = 0

originalValueproperty 
protected var originalValue:String = null

valueproperty 
protected var value:String

Constructor Detail
PdfString()Constructor
public function PdfString($value:*, $encoding:String)

Create a new PdfString

Parameters
$value:* — String or Bytes
 
$encoding:String (default = NaN)
Method Detail
decrypt()method
public function decrypt(reader:PdfReader):void

Decrypt an encrypted PdfString

Parameters

reader:PdfReader

getBytes()method 
override public function getBytes():Bytes

Returns
Bytes
isHexWriting()method 
public function isHexWriting():Boolean

Returns
Boolean
setEncoding()method 
public function setEncoding(enc:String):void

Parameters

enc:String

setHexWriting()method 
public function setHexWriting(hexWriting:Boolean):PdfString

Parameters

hexWriting:Boolean

Returns
PdfString
setObjNum()method 
public function setObjNum(objNum:int, objGen:int):void

Parameters

objNum:int
 
objGen:int

toPdf()method 
override public function toPdf(writer:PdfWriter, os:IOutputStream):void

Parameters

writer:PdfWriter
 
os:IOutputStream

toString()method 
override public function toString():String

Returns
String
toUnicodeString()method 
public function toUnicodeString():String

Returns the Unicode String value of this

Returns
String