
492
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
SimpleImportFormats
Description
Imports formats from a document to a document or a book. If you import formats to a book, the method imports
formats to each book component for which the
ImportFmtInclude
property is set to
True
.
You can OR the following values into the
formatFlags
parameter to specify which formats to import.
The method returns
FE_Success
on success. On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
SimpleImportFormats(fromDoc, formatFlags)
Value
Format to Import
Constants.FF_UFF_COLOR (0x0100)
Colors
Constants.FF_UFF_COMBINED_FONTS (0x0800) Combined Fonts
Constants.FF_UFF_COND (0x0010)
Conditions
Constants.FF_UFF_DOCUMENT_PROPS
(0x0400)
Document Properties
Constants.FF_UFF_FONT (0x0002)
Character Catalog Formats
Constants.FF_UFF_MATH (0x0200)
Equation Settings
Constants.FF_UFF_PAGE (0x0004)
Page Layouts
Constants.FF_UFF_PGF (0x0001)
Paragraph Catalog Formats
Constants.FF_UFF_REFPAGE (0x0020)
Reference Pages
Constants.FF_UFF_REMOVE_EXCEPTIONS
(0x8000)
Remove exception formats from target documents
Constants.FF_UFF_REMOVE_PAGE_BREAKS
(0x4000)
Remove all forced page breaks from target documents
Constants.FF_UFF_TABLE (0x0008)
Table Catalog Formats
Constants.FF_UFF_VAR (0x0040)
Variable Formats
Constants.FF_UFF_XREF (0x0080)
Cross Reference Formats
Error
Reason
Constants.FE_WrongProduct (-60)
Current FrameMaker version does not support this operation.
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_Canceled (-44)
User canceled the operation.
Constants.FE_FailedState (-45)
The FrameMaker product failed to open one or more of the book’s document files during the import
operation.