Last updated 12/8/2009
Class
fw
Files
Conventions used in this guide
The following typographical conventions are used in this guide:
•
font indicates code fragments and API literals, including class names, method names, function names, type
Code
names, scripts, SQL statements, and HTML and XML tag and attribute names.
• Italic code font indicates replaceable items in code.
• The continuation symbol (
the page. When copying the lines of code, eliminate the continuation symbol and type the code as one line.
• Curly braces ({ }) around a function argument indicate that the argument is optional.
The following naming conventions are used in this guide:
• You refers to the developer who is responsible for writing extensions.
• The user refers to the person using Fireworks.
• The visitor refers to the person who views the graphic that the user created.
Additional resources for extension writers
To communicate with other developers who are writing extensions, you can visit the Adobe online forums at
www.adobe.com/support/forums/.
Property or Method
fw.saveAs()
fw.exportPDF()
fw.setUseAGMRenderingForSele
ction()
fw.currentWorkspaceName()
fw.getFamilyNameForPSFont()
fw.getPlatformNameForPSFont()
writeUTF8
readLineUTF8
) indicates that a long line of code has been broken across two or more lines to fit on
¬
Description
Saves the specified document in the specified filename and
format.
Exports the specified document to the specified file in PDF
format.
Sets the currently selected vectors to use the new AGM
Rendering.
Returns the name of the current workspace layout.
Gets the family name of a PostScript font.
Returns the platform name of the PostScript font.
Writes text in UTF8 encoding when the file is opened in UTF8
encoding.
Reads one line from the file that has been opened with UTF8
encoding.
EXTENDING FIREWORKS
Extending Fireworks Overview
5