Packageorg.purepdf.pdf
Classpublic class PdfLayer
InheritancePdfLayer Inheritance PdfDictionary Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash
Implements IPdfOCG



Public Properties
 PropertyDefined By
  children : Vector.<IPdfOCG>
[read-only]
PdfLayer
  name : String
[write-only] Set the name of this layer
PdfLayer
  onPanel : Boolean
Sets the visibility of the layer in Acrobat's layer panel.
PdfLayer
  parent : PdfLayer
[read-only]
PdfLayer
  pdfObject : PdfObject
[read-only] Get the dictionary representing the layer.
PdfLayer
  ref : PdfIndirectReference
PdfLayer
 Inheritedsize : int
[read-only]
PdfDictionary
  title : String
[read-only]
PdfLayer
  visible : Boolean
The the layer visibility
PdfLayer
Protected Properties
 PropertyDefined By
 Inheritedbytes : Bytes
PdfObject
  _children : Vector.<IPdfOCG>
PdfLayer
 InheriteddictionaryType : PdfName
PdfDictionary
 InheritedhashMap : HashMap
PdfDictionary
 InheritedindRef : PRIndirectReference
PdfObject
  _parent : PdfLayer
PdfLayer
  _ref : PdfIndirectReference
PdfLayer
  _title : String
PdfLayer
 Inheritedtype : int
PdfObject
Public Methods
 MethodDefined By
  
PdfLayer($name:String = null, writer:PdfWriter = null)
Create a new layer.
PdfLayer
  
addChild(child:PdfLayer):void
Adds a new child to the children list
PdfLayer
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
 Inherited
contains(key:PdfName):Boolean
PdfDictionary
  
createTitle(title:String, writer:PdfWriter):PdfLayer
[static] Creates a titled layer.
PdfLayer
 Inherited
dispose():void
PdfObject
 Inherited
Returns a PdfObject as a PdfArray, resolving indirect references.
PdfDictionary
 Inherited
PdfDictionary
 Inherited
Returns a PdfObject as a PdfNumber, resolving indirect references.
PdfDictionary
 Inherited
PdfObject
 Inherited
Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object.
PdfDictionary
 Inherited
PdfObject
 Inherited
getKeys():KeySet
PdfDictionary
 Inherited
getType():int
PdfObject
 Inherited
PdfDictionary
 Inherited
isArray():Boolean
PdfObject
 Inherited
isBoolean():Boolean
PdfObject
 Inherited
isDictionary():Boolean
PdfObject
 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
 Inherited
merge(other:PdfDictionary):void
PdfDictionary
 Inherited
PdfDictionary
 Inherited
put(key:PdfName, object:PdfObject):void
PdfDictionary
 Inherited
putAll(other:PdfDictionary):void
PdfDictionary
 Inherited
putEx(key:PdfName, value:PdfObject):void
Associates the specified PdfObject as value to the specified PdfName as key in this map.
PdfDictionary
 Inherited
remove(key:PdfName):void
PdfDictionary
  
setCreatorInfo(creator:String, subtype:String):void
PdfLayer
  
setExport(export:Boolean):void
Specifies the recommended state for content in this group when the document is saved by a viewer application to a format that does not support optional content
PdfLayer
 Inherited
Set the indirect reference
PdfObject
  
setLanguage(language:String, preferred:Boolean):void
Specifies the language of the content controlled by this optional content group
PdfLayer
  
setPrint(subtype:String, printstate:Boolean):void
Specifies that the content in this group is intended for use in printing
PdfLayer
  
setView(view:Boolean):void
Indicates that the group should be set to that state when the document is opened in a viewer application.
PdfLayer
  
setZoom(min:Number, max:Number):void
Specifies a range of magnifications at which the content in this optional content group is best viewed.
PdfLayer
 Inherited
toPdf(writer:PdfWriter, os:IOutputStream):void
[override]
PdfDictionary
 Inherited
toString():String
[override]
PdfDictionary
Protected Methods
 MethodDefined By
 Inherited
setContent(content:String):void
PdfObject
Public Constants
 ConstantDefined By
 InheritedARRAY : int = 5
[static]
PdfObject
 InheritedBOOLEAN : int = 1
[static]
PdfObject
 InheritedCATALOG : PdfName
[static]
PdfDictionary
 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
 InheritedOUTLINES : PdfName
[static]
PdfDictionary
 InheritedPAGE : PdfName
[static]
PdfDictionary
 InheritedSTREAM : int = 7
[static]
PdfObject
 InheritedSTRING : int = 3
[static]
PdfObject
 InheritedTEXT_PDFDOCENCODING : String = PDF
[static]
PdfObject
 InheritedTEXT_UNICODE : String = UnicodeBig
[static]
PdfObject
Property Detail
_childrenproperty
protected var _children:Vector.<IPdfOCG>

_parentproperty 
protected var _parent:PdfLayer

_refproperty 
protected var _ref:PdfIndirectReference

_titleproperty 
protected var _title:String

childrenproperty 
children:Vector.<IPdfOCG>  [read-only]


Implementation
    public function get children():Vector.<IPdfOCG>
nameproperty 
name:String  [write-only]

Set the name of this layer


Implementation
    public function set name(value:String):void
onPanelproperty 
onPanel:Boolean

Sets the visibility of the layer in Acrobat's layer panel. If false the layer can not be manipulated by users


Implementation
    public function get onPanel():Boolean
    public function set onPanel(value:Boolean):void
parentproperty 
parent:PdfLayer  [read-only]


Implementation
    public function get parent():PdfLayer
pdfObjectproperty 
pdfObject:PdfObject  [read-only]

Get the dictionary representing the layer.


Implementation
    public function get pdfObject():PdfObject
refproperty 
ref:PdfIndirectReference


Implementation
    public function get ref():PdfIndirectReference
    public function set ref(value:PdfIndirectReference):void
titleproperty 
title:String  [read-only]


Implementation
    public function get title():String
visibleproperty 
visible:Boolean

The the layer visibility


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Constructor Detail
PdfLayer()Constructor
public function PdfLayer($name:String = null, writer:PdfWriter = null)

Create a new layer. If only name is passed then a new title layer will be created

Parameters
$name:String (default = null)
 
writer:PdfWriter (default = null)
Method Detail
addChild()method
public function addChild(child:PdfLayer):void

Adds a new child to the children list

Parameters

child:PdfLayer


Throws
Error
createTitle()method 
public static function createTitle(title:String, writer:PdfWriter):PdfLayer

Creates a titled layer. A title layer is not really a layer but a collection of layers under the same title heading

Parameters

title:String
 
writer:PdfWriter

Returns
PdfLayer

Throws
ArgumentError
setCreatorInfo()method 
public function setCreatorInfo(creator:String, subtype:String):void

Parameters

creator:String — a text string specifying the application that created the group
 
subtype:String — a string defining the type of content controlled by the group

setExport()method 
public function setExport(export:Boolean):void

Specifies the recommended state for content in this group when the document is saved by a viewer application to a format that does not support optional content

Parameters

export:Boolean

setLanguage()method 
public function setLanguage(language:String, preferred:Boolean):void

Specifies the language of the content controlled by this optional content group

Parameters

language:String
 
preferred:Boolean

setPrint()method 
public function setPrint(subtype:String, printstate:Boolean):void

Specifies that the content in this group is intended for use in printing

Parameters

subtype:String
 
printstate:Boolean

setView()method 
public function setView(view:Boolean):void

Indicates that the group should be set to that state when the document is opened in a viewer application.

Parameters

view:Boolean

setZoom()method 
public function setZoom(min:Number, max:Number):void

Specifies a range of magnifications at which the content in this optional content group is best viewed.

Parameters

min:Number
 
max:Number