
145
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
Example
The following command resizes the canvas to include all the items in the document, enlarging the canvas if necessary:
fw.getDocumentDOM().setDocumentCanvasSizeToDocumentExtents(true);
See also
“
dom.setDocumentCanvasSizeToSelection()
” on page 145
dom.setDocumentCanvasSizeToSelection()
Availability
Fireworks 3.
Usage
dom.setDocumentCanvasSizeToSelection()
Arguments
None.
Returns
Nothing.
Description
Calculates the size of all the items in the selection and resizes the document canvas accordingly.
See also
dom.setDocumentCanvasSizeToDocumentExtents()
dom.setDocumentImageSize()
Availability
Fireworks 3, with additional argument added in Fireworks CS3.
Usage
dom.setDocumentImageSize(
boundingRectangle, resolution, currentPageOnly
)
Arguments
boundingRectangle
A rectangle that specifies the size to which the document should be scaled (see “
Rectangle data
type
” on page 8).
resolution
Specifies the resolution for the scaled document (see “
Resolution data type
” on page 8).
currentPageOnly
A Boolean value that specifies whether the change in document size applies to all pages or only the
current page. If the value is
true
, only the current page is resized. If it is
false
, all pages of the document are resized.
The default value is
true
.
Returns
Nothing.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...