Package | org.purepdf.pdf |
Class | public class PdfAction |
Inheritance | PdfAction PdfDictionary PdfObject it.sephiroth.utils.ObjectHash |
Method | Defined By | ||
---|---|---|---|
PdfAction | |||
canBeInObjStm():Boolean
Whether this object can be contained in an object stream. | PdfObject | ||
PdfDictionary | |||
dispose():void | PdfObject | ||
[static] | PdfAction | ||
[static]
Creates a new PDfAction from a named action
| PdfAction | ||
[static] | PdfAction | ||
Returns a PdfObject as a PdfArray,
resolving indirect references. | PdfDictionary | ||
PdfDictionary | |||
Returns a PdfObject as a PdfNumber,
resolving indirect references. | PdfDictionary | ||
PdfObject | |||
Returns the PdfObject associated to the specified
key, resolving a possible indirect reference to a direct
object. | PdfDictionary | ||
PdfObject | |||
getKeys():KeySet | PdfDictionary | ||
getType():int | PdfObject | ||
PdfDictionary | |||
isArray():Boolean | PdfObject | ||
isBoolean():Boolean | PdfObject | ||
isDictionary():Boolean | PdfObject | ||
isIndirect():Boolean | PdfObject | ||
isName():Boolean | PdfObject | ||
isNull():Boolean | PdfObject | ||
isNumber():Boolean | PdfObject | ||
isStream():Boolean
Checks if this PdfObject is of the type PdfStream
| PdfObject | ||
isString():Boolean | PdfObject | ||
[static]
Create a JavaScript action. | PdfAction | ||
merge(other:PdfDictionary):void | PdfDictionary | ||
mergeDifferent(other:PdfDictionary):void | PdfDictionary | ||
PdfDictionary | |||
putAll(other:PdfDictionary):void | PdfDictionary | ||
Associates the specified PdfObject as value to the
specified PdfName as key in this map. | PdfDictionary | ||
PdfDictionary | |||
rendition(file:String, fs:PdfFileSpecification, mimeType:String, ref:PdfIndirectReference):PdfAction [static]
Creates a Rendition action
| PdfAction | ||
setIndRef(indRef:PRIndirectReference):void
Set the indirect reference
| PdfObject | ||
[override] | PdfDictionary | ||
toString():String [override] | PdfDictionary |
Constant | Defined By | ||
---|---|---|---|
ARRAY : int = 5 [static] | PdfObject | ||
BOOLEAN : int = 1 [static] | PdfObject | ||
CATALOG : PdfName [static] | PdfDictionary | ||
DICTIONARY : int = 6 [static] | PdfObject | ||
FIRSTPAGE : int = 1 [static] | PdfAction | ||
INDIRECT : int = 10 [static] | PdfObject | ||
LASTPAGE : int = 4 [static] | PdfAction | ||
NAME : int = 4 [static] | PdfObject | ||
NEXTPAGE : int = 3 [static] | PdfAction | ||
NOTHING : String [static] | PdfObject | ||
NULL : int = 8 [static] | PdfObject | ||
NUMBER : int = 2 [static] | PdfObject | ||
OUTLINES : PdfName [static] | PdfDictionary | ||
PAGE : PdfName [static] | PdfDictionary | ||
PREVPAGE : int = 2 [static] | PdfAction | ||
PRINTDIALOG : int = 5 [static] | PdfAction | ||
STREAM : int = 7 [static] | PdfObject | ||
STRING : int = 3 [static] | PdfObject | ||
TEXT_PDFDOCENCODING : String = PDF [static] | PdfObject | ||
TEXT_UNICODE : String = UnicodeBig [static] | PdfObject |
PdfAction | () | Constructor |
public function PdfAction()
fromDestination | () | method |
public static function fromDestination(destination:PdfIndirectReference):PdfAction
Parameters
destination:PdfIndirectReference |
PdfAction |
fromNamed | () | method |
public static function fromNamed(named:int):PdfAction
Creates a new PDfAction from a named action
Parameters
named:int |
PdfAction |
See also
fromURL | () | method |
public static function fromURL(url:String, isMap:Boolean = false):PdfAction
Parameters
url:String | |
isMap:Boolean (default = false )
|
PdfAction |
javaScript | () | method |
public static function javaScript(code:String, writer:PdfWriter, unicode:Boolean = false):PdfAction
Create a JavaScript action. If the JavaScript is smaller than 50 characters it will be placed as a string, otherwise it will be placed as a compressed stream.
Parameters
code:String — the JavaScript code
| |
writer:PdfWriter — the writer for this action
| |
unicode:Boolean (default = false )
|
PdfAction — the JavaScript action
|
rendition | () | method |
public static function rendition(file:String, fs:PdfFileSpecification, mimeType:String, ref:PdfIndirectReference):PdfAction
Creates a Rendition action
Parameters
file:String | |
fs:PdfFileSpecification | |
mimeType:String | |
ref:PdfIndirectReference |
PdfAction — a Media Clip action
|
IOError
|
FIRSTPAGE | Constant |
public static const FIRSTPAGE:int = 1
LASTPAGE | Constant |
public static const LASTPAGE:int = 4
NEXTPAGE | Constant |
public static const NEXTPAGE:int = 3
PREVPAGE | Constant |
public static const PREVPAGE:int = 2
PRINTDIALOG | Constant |
public static const PRINTDIALOG:int = 5