Packagecoldfusion.service.mxml
Classpublic class Document
InheritanceDocument Inheritance BasicService

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

The proxy class for document services exposed by ColdFusion.



Public Properties
 PropertyDefined By
  authPassword : String
Password sent to the target URL for Basic Authentication.
Document
  authUser : String
User name sent to the target URL for Basic Authentication.
Document
  backgroundVisible : Boolean
Specifies whether the background prints when the user prints the document: yes: Includes the background when printing. no: Does not includes the background when printing.
Document
  bookmark : Boolean
Specifies whether bookmarks are created in the document: yes: Creates bookmarks. no: Does not create bookmarks.
Document
  content : String
Document
  documentItem : Array
Specifies action items for a PDF or FlashPaper document created by the cfdocument tag.
Document
  documentSection : Array
Divides a PDF or FlashPaper document into sections.
Document
  encryption : String
Specifies whether the output is encrypted: 128-bit 40-bit none
Document
  fontEmbed : Boolean = true
Specifies whether ColdFusion embeds fonts in the output: yes: Embeds fonts. no: Does not embed fonts. selective: Embeds all fonts except Java fonts and core fonts.
Document
  format : String
Report format: PDF FlashPaper
Document
  marginBottom : String
Bottom margin in inches (default) or centimeters.
Document
  marginLeft : String
Left margin in inches (default) or centimeters.
Document
  marginRight : String
Right margin in inches (default) or centimeters.
Document
  marginTop : String
Top margin in inches (default) or centimeters.
Document
  mimeType : String
MIME type of the source document.
Document
  orientation : String
Page orientation: portrait landscape
Document
  ownerPassword : String
Specifies the owner password; format="PDF" only.
Document
  pageHeight : String
Page height in inches (default) or centimeters.
Document
  pageType : String
Page type into which ColdFusion generates the report: legal: 8.5 inches x 14 inches. letter: 8.5 inches x 11 inches A4: 8.27 inches x 11.69 inches A5: 5.81 inches x 8.25 inches B4: 9.88 inches x 13.88 inches B5: 7 inches x 9.88 inches B4-JIS: 10.13 inches x 14.31 inches B5-JIS: 7.19 inches x 10.13 inches custom: custom height and width.
Document
  pageWidth : String
Page width in inches (default) or centimeters.
Document
  permissions : String
Format="PDF" only; sets one or more of the following permissions: AllowPrinting AllowModifyContents AllowCopy AllowModifyAnnotations AllowFillIn AllowScreenReaders AllowAssembly AllowDegradedPrinting Separate multiple permissions with commas.
Document
  proxyHost : String
Host name or IP address of a proxy server to which to send the request.
Document
  proxyPassword : String
Password required by the proxy server.
Document
  proxyPort : String
The port to connect to on the proxy server.
Document
  proxyUser : String
User name to provide to the proxy server.
Document
  scale : String
Scale factor as a percentage.
Document
  src : String
URL or the relative path to the web root.
Document
  srcFile : String
Absolute path of a file that is on the server.
Document
  unit : String
Default unit for the pageHeight, pageWidth, and margin attributes: in: inches cm: centimeters
Document
  userAgent : String
Text to put in the HTTP User-Agent request header field.
Document
  userPassword : String
Specifies a user password; format="PDF" only.
Document
Public Methods
 MethodDefined By
  
Creates an instance of the document class.
Document
  
Sends the information to the ColdFusion service based on the action and attributes that the user sets.
Document
Property Detail
authPasswordproperty
public var authPassword:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Password sent to the target URL for Basic Authentication.

authUserproperty 
public var authUser:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

User name sent to the target URL for Basic Authentication.

backgroundVisibleproperty 
public var backgroundVisible:Boolean

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies whether the background prints when the user prints the document:

The default value is no.

bookmarkproperty 
public var bookmark:Boolean

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies whether bookmarks are created in the document:

The default value is no.

contentproperty 
public var content:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

documentItemproperty 
public var documentItem:Array

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies action items for a PDF or FlashPaper document created by the cfdocument tag. Action items include the following:

documentSectionproperty 
public var documentSection:Array

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Divides a PDF or FlashPaper document into sections. By using the documentSection tag in conjunction with a cfdocumentitem tag, each section can have unique headers, footers, and page numbers.

encryptionproperty 
public var encryption:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies whether the output is encrypted:

The default value is none.

fontEmbedproperty 
public var fontEmbed:Boolean = true

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies whether ColdFusion embeds fonts in the output:

The default value is yes.

formatproperty 
public var format:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Report format:

marginBottomproperty 
public var marginBottom:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Bottom margin in inches (default) or centimeters. To specify the bottom margin in centimeters, include the unit=cm attribute.

marginLeftproperty 
public var marginLeft:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Left margin in inches (default) or centimeters. To specify the left margin in centimeters, include the unit=cm attribute.

marginRightproperty 
public var marginRight:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Right margin in inches (default) or centimeters. To specify the right margin in centimeters, include the unit=cm attribute.

marginTopproperty 
public var marginTop:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Top margin in inches (default) or centimeters. To specify the top margin in centimeters, include the unit=cm attribute.

mimeTypeproperty 
public var mimeType:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

MIME type of the source document. Supported MIME types are:

If you do not specify this attribute explicitly, ColdFusion uses the filename to determine the MIME type.

The default value is text/html.

orientationproperty 
public var orientation:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Page orientation:

The default value is portrait.

ownerPasswordproperty 
public var ownerPassword:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies the owner password; format="PDF" only.

pageHeightproperty 
public var pageHeight:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Page height in inches (default) or centimeters. This attribute is only valid if pagetype=custom. To specify page height in centimeters, include the unit=cm attribute.

pageTypeproperty 
public var pageType:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Page type into which ColdFusion generates the report:

The default value is letter.

pageWidthproperty 
public var pageWidth:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Page width in inches (default) or centimeters. This attribute is only valid if pagetype=custom. To specify page width in centimeters, include the unit=cm attribute.

permissionsproperty 
public var permissions:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Format="PDF" only; sets one or more of the following permissions:

Separate multiple permissions with commas.

proxyHostproperty 
public var proxyHost:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Host name or IP address of a proxy server to which to send the request.

proxyPasswordproperty 
public var proxyPassword:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Password required by the proxy server.

proxyPortproperty 
public var proxyPort:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

The port to connect to on the proxy server.

The default value is 80.

proxyUserproperty 
public var proxyUser:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

User name to provide to the proxy server.

scaleproperty 
public var scale:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Scale factor as a percentage. Use this option to reduce the size of the HTML output so that it fits on that paper. Specify a number less than 100.

The default value is Calculated by ColdFusion.

srcproperty 
public var src:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

URL or the relative path to the web root. You cannot specify both the src and srcfile attributes. The file must be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.

srcFileproperty 
public var srcFile:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Absolute path of a file that is on the server. You cannot specify both the src and srcfile attributes. The file must be a PPT file, a Word file, or be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.

unitproperty 
public var unit:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Default unit for the pageHeight, pageWidth, and margin attributes:

The default value is in.

userAgentproperty 
public var userAgent:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Text to put in the HTTP User-Agent request header field. Used to identify the request client software.

The default value is ColdFusion.

userPasswordproperty 
public var userPassword:String

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Specifies a user password; format="PDF" only.

Constructor Detail
Document()Constructor
public function Document()

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Creates an instance of the document class.

Method Detail
execute()method
public function execute():void

Language Version: ActionScript 3.0
Product Version: CF 9
Runtime Versions: Flash Player 9, AIR 1.0

Sends the information to the ColdFusion service based on the action and attributes that the user sets.