protected var _duration:int = -1protected var _hashCode:intprotected var _marginBottom:Number = 36.0protected var _marginLeft:Number = 36.0protected var _marginMirroring:Boolean = falseprotected var _marginRight:Number = 36.0protected var _marginTop:Number = 36.0protected var _nextPageSize:RectangleElementprotected var _opened:Booleanprotected var _pageResources:PageResourcesprotected var _pageSize:RectangleElementprotected var _transition:PdfTransition = nullprotected var _writer:PdfWriterprotected var additionalActions:PdfDictionaryprotected var alignment:int = 0protected var anchorAction:PdfAction = nullprotected var annotationsImp:PdfAnnotationsImpprotected var boxSize:HashMapprotected var chapternumber:int = 0protected var closed:Booleanpublic static var compress:Boolean = trueprotected var currentHeight:Number = 0protected var currentOutline:PdfOutlineprotected var documentFileAttachment:HashMapprotected var documentLevelJS:HashMapduration:int [write-only]
Sets the display duration for the page (for presentations)
Implementation public function set duration(value:int):voidprotected var firstPageEvent:Boolean = trueprotected var footer:HeaderFooter = nullprotected var graphics:PdfContentByteprotected var header:HeaderFooter = nullprotected var imageEnd:Number = -1protected var imageWait:ImageElementprotected var indentation:IndentationindentBottom:Number [read-only]
Implementation protected function get indentBottom():NumberindentLeft:Number [read-only]
Implementation protected function get indentLeft():NumberindentRight:Number [read-only]
Implementation protected function get indentRight():NumberindentTop:Number [read-only]
Implementation protected function get indentTop():Numberprotected var info:PdfInfoisPageEmpty:Boolean [read-only]
Implementation public function get isPageEmpty():Booleanprotected var isSectionTitle:Boolean = falseprotected var lastElementType:int = -1protected var leading:Number = 0protected var leadingCount:int = 0protected var line:PdfLine = nullprotected var lines:Vector.<PdfLine>protected var localDestinations:HashMapmarginBottom:Number [read-only]
Implementation public function get marginBottom():NumbermarginLeft:Number [read-only]
Implementation public function get marginLeft():NumbermarginMirroring:Boolean Implementation public function get marginMirroring():Boolean public function set marginMirroring(value:Boolean):voidprotected var marginMirroringTopBottom:Boolean = falsemarginRight:Number [read-only]
Implementation public function get marginRight():NumbermarginTop:Number [read-only]
Implementation public function get marginTop():Numberprotected var markPoint:int = 0protected var nextMarginBottom:Number = 36.0protected var nextMarginLeft:Number = 36.0protected var nextMarginRight:Number = 36.0protected var nextMarginTop:Number = 36.0opened:Boolean [read-only]
Return true if the document is already opened
Implementation public function get opened():Booleanprotected var pageEmpty:Boolean = trueprotected var pageLabels:PdfPageLabelsprotected var pageN:int = 0pageNumber:int [read-only]
Implementation public function get pageNumber():intpageResources:PageResources [read-only]
Implementation public function get pageResources():PageResourcespageSize:RectangleElement
Return the current pagesize
Implementation public function get pageSize():RectangleElement public function set pageSize(value:RectangleElement):voidprotected var rootOutline:PdfOutlineprotected var strictImageSequence:Boolean = falseprotected var text:PdfContentByteprotected var textEmptySize:intprotected var thisBoxSize:HashMapprotected var thumb:PdfIndirectReferencetransition:PdfTransition [write-only]
Set the transition for the page
Implementation public function set transition(value:PdfTransition):voiduserunit:Number
Use this method to set the user unit
A UserUnit is a value that defines the default user space unit
The minimum UserUnit is 1 (1 unit = 1/72 inch).
The maximum UserUnit is 75,000.
Remember that you need to set the pdf version to 1.6
Implementation public function get userunit():Number public function set userunit(value:Number):void Throws protected var viewerPreferences:PdfViewerPreferencesImpwriter:PdfWriter [read-only]
Implementation public function get writer():PdfWriterpublic function PdfDocument(size:RectangleElement) Parameters public function add(element:IElement):Boolean
Add a new element to the current pdf document
Parameters
Returns | Boolean — true if the element was succesfully added to the documnet
|
See also
public function addAdditionalAction(actionType:PdfName, action:PdfAction):void
Adds additional javascript action to the document
Parameters
See also
public function addAnnotation(annot:PdfAnnotation):void Parameters
public function addAuthor(value:String):Boolean Parameters
Returns public function addCreationDate():BooleanReturns public function addCreator(creator:String):Boolean Parameters
Returns public function addElement(element:IElement):Boolean
Don't use this directly if you are 100% sure what
you're doing. Use add() instead
Parameters
ReturnsSee also
addElement()
public function addFileAttachment(description:String, file:ByteArray, fileName:String):void
Add a file attachment at the document level
Parameters
| description:String — the file description
|
| |
| file:ByteArray — file contents
|
| |
| fileName:String — file name
|
public function addJavaScript(code:String, unicode:Boolean = false):void
Add a JavaScript action at the document level.
When the document opens, all this JavaScript runs.
Parameters
| code:String — the JavaScript code
|
| |
| unicode:Boolean (default = false) — select JavaScript unicode
|
public function addKeywords(keywords:String):Boolean Parameters
Returns public function addProducer():BooleanReturns protected function addSpacing(extraspace:Number, oldleading:Number, f:Font):void
Adds extra space.
This method should probably be rewritten.
Parameters
| extraspace:Number |
| |
| oldleading:Number |
| |
| f:Font |
public function addSubject(subject:String):Boolean Parameters
Returns public function addTitle(title:String):Boolean Parameters
Returns public function addWriter(w:PdfWriter):void Parameters
public function bottom(margin:Number = 0):Number Parameters
| margin:Number (default = 0) |
Returns public function calculateOutlineCount():void protected function carriageReturn():void public function close():void
Close the document
protected function doFooter():void
Draw the document footer
Throws protected function doHeader():void
Draw the document headers
Throws protected function ensureNewLine():void
Ensure a new line is started
protected function flushLines():NumberReturns public function getCatalog(pages:PdfIndirectReference):PdfCatalog Parameters
Returns public function getCurrentPage():PdfIndirectReferenceReturns public function getDefaultColorSpace():PdfDictionaryReturns public function getDirectContent():PdfContentByteReturns public function getDirectContentUnder():PdfContentByteReturns public function getInfo():PdfInfoReturns pdf_core function getMarkPoint():intReturns public function getPageReference(page:int):PdfIndirectReference
Parameters
ReturnsSee also
public function getVerticalPosition(ensurenewline:Boolean):Number
Gets the current vertical page position.
Parameters
| ensurenewline:Boolean — Tells whether a new line shall be enforced
|
Returns public function hashCode():intReturns pdf_core function incMarkPoint():void protected function initPage():void public function left(margin:Number = 0):Number Parameters
| margin:Number (default = 0) |
Returns public function localDestination(name:String, destination:PdfDestination):Boolean
The local destination to where a local goto with the same
name will jump to.
Parameters
| name:String — the name of this local destination
|
| |
| destination:PdfDestination — the PdfDestination with the jump coordinates
|
Returns | Boolean — true if the local destination was added,
false if a local destination with the same name
already existed
|
public function localGoto(name:String, llx:Number, lly:Number, urx:Number, ury:Number):void
Implements a link to other part of the document. The jump will
be made to a local destination with the same name, that must exist.
Parameters
| name:String — the name for this link
|
| |
| llx:Number — the lower left x corner of the activation area
|
| |
| lly:Number — the lower left y corner of the activation area
|
| |
| urx:Number — the upper right x corner of the activation area
|
| |
| ury:Number — the upper right y corner of the activation area
|
public function lockLayer(layer:PdfLayer):void
Use this method to lock a content group
The state of a locked group can not be changed using the user
interface of a viewer application
Parameters
protected function newLine():void
Adds the current line to the list of lines and also adds an empty line.
public function newPage():Boolean
make a new page
Returns public function open():void
open the document
public function outlineTree(outline:PdfOutline):void Parameters
public function resetFooter():void public function resetHeader():void public function resetPageCount():void public function right(margin:Number = 0):Number Parameters
| margin:Number (default = 0) |
Returns public function setDefaultColorSpace(key:PdfName, value:PdfObject):void Parameters
public function setFooter(value:HeaderFooter):void Parameters
public function setHeader(value:HeaderFooter):void Parameters
public function setMargins(marginLeft:Number, marginRight:Number, marginTop:Number, marginBottom:Number):Boolean Parameters
| marginLeft:Number |
| |
| marginRight:Number |
| |
| marginTop:Number |
| |
| marginBottom:Number |
Returns protected function setNewPageSizeAndMargins():void public function setPageLabels(pageLabels:PdfPageLabels):void
Sets the page labels
Parameters
public function setPdfVersion(value:String):void Parameters
public function setThumbnail(image:ImageElement):voidDeprecated: Deprecated
Assign a thumbnail to the current page
Acrobat/Reader 9 no longer use the embedded thumbnail.
Parameters
Throws public function setViewerPreferences(preferences:int):void
Set the view preferences for this document
Parameters
See also
public function top(margin:Number = 0):Number Parameters
| margin:Number (default = 0) |
Returns public function traverseOutlineCount(outline:PdfOutline):void Parameters
pdf_core function writeLineToContent(line:PdfLine, text:PdfContentByte, graphics:PdfContentByte, currentValues:Vector.<Object>, ratio:Number):void
Writes a text line to the document. It takes care of all the attributes.
Parameters
Throws public function writeOutlines():voidEvent Object Type: flash.events.ProgressEvent public static const DID_PRINT:PdfNamepublic static const DID_SAVE:PdfNamepublic static const DOCUMENT_CLOSE:PdfNamepublic static const hangingPunctuation:String = .,;:'public static const WILL_PRINT:PdfNamepublic static const WILL_SAVE:PdfNamepublic static const wmfFontCorrection:Number = 0.86
Wed May 5 2010, 12:59 PM -04:00