PrintJob

Object
    |
    +-PrintJob

public class PrintJob
extends Object

The PrintJob class lets you create content and print it to one or more pages. This class, in addition to offering improvements to print functionality provided by the print() method, lets you render dynamic content offscreen, prompt users with a single Print dialog box, and print an unscaled document with proportions that map to the proportions of the content. This capability is especially useful for rendering and printing dynamic content, such as database content and dynamic text.

Additionally, with properties populated by PrintJob.start(), your document can read your user's printer settings, such as page height, width, and orientation, and you can configure your document to dynamically format Flash content that is appropriate for the printer settings. These user layout properties are read-only and cannot be changed by Flash Player.

Availability: ActionScript 1.0; Flash Player 7

Property summary

Modifiers

Property

Description

orientation:String [read-only]

The image orientation for printing.

pageHeight:Number [read-only]

The height of the actual printable area on the page, in points.

pageWidth:Number [read-only]

The width of the actual printable area on the page, in points.

paperHeight:Number [read-only]

The overall paper height, in points.

paperWidth:Number [read-only]

The overall paper width, in points.

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)


Constructor summary

Signature

Description

PrintJob()

Creates a PrintJob object that you can use to print one or more pages.

Method summary

Modifiers

Signature

Description

addPage(target:Object, [printArea:Object], [options:Object], [frameNum:Number]) : Boolean

Sends the specified level or movie clip as a single page to the print spooler.

send() : Void

Used following the PrintJob.start() and PrintJob.addPage() methods to send spooled pages to the printer.

start() : Boolean

Displays the operating system's print dialog boxes and starts spooling.

Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)