|
accolades
|
|
|
Access
|
read-only
|
|
Returns
|
fAccolade[]
|
|
bookmarks
|
|
|
Access
|
read-only
|
|
Returns
|
fBookmark[]
|
|
colors
|
|
|
Access
|
read-only
|
|
Returns
|
fNamedColor[]
|
|
contexts
|
|
|
Access
|
read-only
|
|
Returns
|
fContexts[]
|
|
controls
|
|
|
Access
|
read-only
|
|
Returns
|
fControl[]
|
|
documentSequences
|
|
|
Access
|
read-only
|
|
Returns
|
fDocumentSequence[]
|
|
events
|
|
|
Access
|
read-only
|
|
Returns
|
fPublishEvents
|
|
fonts
|
|
|
Access
|
read-only
|
|
Returns
|
fFont[]
|
|
footnotes
|
|
|
Access
|
read-only
|
|
Returns
|
fFootnote[]
|
|
frames
|
|
|
Access
|
read-only
|
|
Returns
|
fFrame[]
|
|
functions
|
|
|
Access
|
read-only
|
|
Returns
|
fArray
|
|
graphics
|
|
|
Access
|
read-only
|
|
Returns
|
fGraphic[]
|
|
indexes
|
|
|
Access
|
read-only
|
|
Returns
|
fIndex[]
|
|
layergroups
|
|
|
Access
|
read-only
|
|
Returns
|
fLayergroup[]
|
|
layers
|
|
|
Access
|
read-only
|
|
Returns
|
fLayer[]
|
|
namespaces
|
|
|
Access
|
read-only
|
|
Returns
|
fNamespace[]
|
|
pageSequences
|
|
|
Access
|
read-only
|
|
Returns
|
fPageSequence[]
|
|
pages
|
|
|
Access
|
read-only
|
|
Returns
|
fPage[]
|
|
pdfActions
|
|
|
Access
|
read-only
|
|
Returns
|
fPDFAction[]
|
|
pdfFormItems
|
|
|
Access
|
read-only
|
|
Returns
|
fPDFFormItem[]
|
|
pdfLayers
|
|
|
Access
|
read-only
|
|
Returns
|
fPDFLayer[]
|
|
pdfMediaAssets
|
|
|
Access
|
read-only
|
|
Returns
|
fPDFMediaAssets[]
|
|
pdfU3DViews
|
|
|
Access
|
read-only
|
|
Returns
|
fPDFU3DView[]
|
|
publishes
|
|
|
Access
|
read-only
|
|
Returns
|
fPublish[]
|
|
rasters
|
|
|
Access
|
read-only
|
|
Returns
|
fRaster[]
|
|
rules
|
|
|
Access
|
read-only
|
|
Returns
|
fRules[]
|
|
storedObjects
|
|
|
Access
|
read-only
|
|
Returns
|
fArray
|
|
streams
|
|
|
Access
|
read-only
|
|
Returns
|
fStream[]
|
|
tags
|
|
|
Access
|
read-only
|
|
Returns
|
fTag[]
|
|
tagsByType
|
|
|
Access
|
read-only
|
|
Returns
|
fArray
|
|
copyTag from to fromns tons
|
|
|
Parameters
|
String from
The full name of the source tag to copy, including any LD namespaces.
String to
The name of the new tag to create.
fNamespace fromns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
fNamespace tons
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fTag. Returns the new object, which will either be fStream, fGraphic, fRaster or fNamespace (depending on type).
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
|
createAccolade name ns
|
|
|
Parameters
|
String name
The name of the Accolade object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fAccolade. Returns the newly created fAccolade object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createBarcode name width height foregroundColor backgroundColor barcode value
|
|
|
Parameters
|
String name
The name of the graphic tag to create and generate the barcode into. The type of stream will be fTag.TYPE_GRAPHIC.
fLength width
The width of the barcode.
fLength height
The height of the barcode.
fColor foregroundColor
The foreground color to use for the barcode.
fColor backgroundColor
The background color to use for the barcode.
fBarcode barcode
Either an fBarcode object containing the properties of the barcode, or an integer from fBarcode.BarcodeTypes specifying the type of barcode to create.
String value
The value to use when encoding the barcode. If multiple values are provided, a stacked barcode will br created, if allowed by the barcode type.
|
|
Returns
|
fGraphic. The graphic tag containing the generated barcode, if successful.
|
|
createBookmark name ns
|
|
|
Parameters
|
String name
The name of the tag to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fBookmark. Returns the newly created fBookmark object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: A non text stream type was provided.
|
|
createContexts name ns
|
|
|
Parameters
|
String name
The name of the context set object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fContexts. Returns the newly created fContexts object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createControl name type ns
|
|
|
Parameters
|
String name
The name of the control object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
int type
The type of object to create. This must be one of the control object types listed in fControl.ControlType.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fControl. Returns the newly created fControl object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: An invalid control object type was provided.
|
|
createDocumentSequence name ns
|
|
|
Parameters
|
String name
The name of the Document Sequence object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fDocumentSequence. Returns the newly created fDocumentSequence object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createFootnote name ns
|
|
|
Parameters
|
String name
The name of the Footnote object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fFootnote. Returns the newly created fFootnote object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createFrame name ns
|
|
|
Parameters
|
String name
The name of the frame object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fFrame. Returns the newly created fFrame object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createFunction name function ns
|
|
|
Parameters
|
String name
The name of the tag to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
Object function
A string containing JavaScript source code for the function to associate with the new tag, or a JavaScript Function object.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
Object. Returns the function object associated with the tag.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: A non text stream type was provided.
|
|
createGraphicFromSVG graphic svg pdfPassthrough pxToMm useDocumentSize fitX fitY preserveAspectRatio defaultLineWidth ellipseAccuracy
|
|
|
Parameters
|
String graphic
The name of the output graphic tag to create.
fxNode svg
The SVG root node to import.
boolean pdfPassthrough
If true, the SVG content used will be passed directly through to the PDF output driver instead of drawing the graphic tag.
float pxToMm
The conversion value to use when converting pixel units to mm.
boolean useDocumentSize
If true, the width and height specified in the SVG will be used to size the graphic.
fLength fitX
The width of the graphic to use if useDocumentSize is not set.
fLength fitY
The height of the graphic to use if useDocumentSize is not set.
boolean preserveAspectRatio
If true, the graphic will retain the specified aspect ratio when fitting inside the width and height.
fLength defaultLineWidth
The default line thickness to use if not specified in the SVG.
int ellipseAccuracy
The number of line segments to use when simulating ellipse curves.
|
|
Returns
|
fGraphic. The graphic containing the imported SVG.
|
|
createIndex name ns
|
|
|
Parameters
|
String name
The name of the Index object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fIndex. Returns the newly created fIndex object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createLayer name underlay ns
|
|
|
Parameters
|
String name
The name of the layer object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
boolean underlay
If true, the layer will be created as an underlay, otherwise it will be an overlay.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fLayer. Returns the newly created fLayer object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createLayerGroup name ns
|
|
|
Parameters
|
String name
The name of the layer group object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fLayerGroup. Returns the newly created fLayerGroup object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createNamedColor color type ns
|
|
|
Parameters
|
String color
The name of the color object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
int type
The type of the color object to create. Value is one of fContent.NamedColorTypes or defaults to creating a named color.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fNamedColor. Returns the newly created fNamedColor, fGradientColor or fRasterColor object, depending on type.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createNamespace name ns
|
|
|
Parameters
|
String name
The name of the LD namespace to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fNamespace. Returns the newly created fNamespace object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPDFAction layer ns
|
|
|
Parameters
|
String layer
The name of the PDF Action object to create. If the name contains a colon, the tag will be created in the specified LD namespace.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFAction. Returns the newly created fPDFAction object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPDFFormItem name type ns
|
|
|
Parameters
|
String name
The name of the PDF Form object to create. If the name contains a colon, the tag will be created in the specified LD namespace.
int type
The type of PDF Form object to create. Value is one of fContent.PDFFormItemTypes to create a PDF Form item of that type.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFFormItem. Returns the newly created fPDFFormItem object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPDFLayer layer ns
|
|
|
Parameters
|
String layer
The name of the PDF Layer object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFLayer. Returns the newly created fPDFLayer object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPDFMediaAssets layer ns
|
|
|
Parameters
|
String layer
The name of the PDF Media Assets object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFMediaAssets. Returns the newly created fPDFMediaAssets object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPDFU3DView layer ns
|
|
|
Parameters
|
String layer
The name of the PDF U3D View object to create. If the name contains a colon, the tag will be created in the specified LD namespace.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFU3DView. Returns the newly created fPDFU3DView object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPageChecksumReport report mode baseReport startPage endPage lineElement pageNumberElement pageReformatElement formatElement printElement pageShowString
|
|
|
Parameters
|
String report
The name of the stream to write the report into. If this stream already exists, it will be overwritten.
int mode
Which type of report to create. Possible values are in fContent.PageChecksumModes.
fStream baseReport
The stream containing the report to be used as a base for comparisons. If mode is set to fContent.CHECKSUM_FULL, this parameter will be ignored and should be left empty.
int startPage
The first page to include in the report.
int endPage
The last page to include in the report.
String lineElement
The name of the element to wrap each line in the report. This defaults to "ck_line".
String pageNumberElement
The name of the element to wrap each page number in the report. This defaults to "ck_page".
String pageReformatElement
The name of the element to wrap the page reformat checksum in the report. If this is empty, page reformat checksums are not included in the report. This defaults to "ck_trf".
String formatElement
The name of the element to wrap the format checksum in the report. If this is empty, format checksums are not included in the report. This defaults to "ck_tformat".
String printElement
The name of the element to wrap the print checksum in the report. If this is empty, print checksums are not included in the report. This defaults to "ck_tprint".
String pageShowString
The show string to use to format the page number This defaults to "$p".
|
|
Returns
|
fStream. The stream containing the checksum report.
|
|
createPageSequence name ns
|
|
|
Parameters
|
String name
The name of the Page Sequence object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPageSequence. Returns the newly created fPageSequence object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createPublish name ns
|
|
|
Parameters
|
String name
The name of the publish object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPublish. Returns the newly created fPublish object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createRules name ns
|
|
|
Parameters
|
String name
The name of the rules object to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fRules. Returns the newly created fRules object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
createStoredObject name obj ns
|
|
|
Parameters
|
String name
The name of the stored object tag to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
Object obj
The object to store in the new tag.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fTag. The tag containing the given object.
|
|
createStream name type ns
|
|
|
Parameters
|
String name
The name of the tag to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
int type
The type of stream to create. This must be one of the text stream types listed in fTag.TagType. This parameter defaults to fTag.TYPE_TEXT.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fStream. Returns the newly created fStream object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: A non text stream type was provided.
|
|
createTag name type ns
|
|
|
Parameters
|
String name
The name of the tag to create. If the name contains a colon, the tag will be created in the specified LD namespace. Otherwise, the name must follow standard LD naming conventions.
int type
What type of tag to create. The list of possible tag types is available in fTag.TagType.
fNamespace ns
The LD namespace to create the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fTag. Returns the newly created fStream, fGraphic, fRaster or fNamespace object (depending on type).
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
deletePage num_pages
|
|
|
Parameters
|
int num_pages
The number of pages to delete. If not provided, only 1 page will be deleted.
|
|
Returns
|
void. None.
|
|
deleteTag name ns updateText replaceText keepFrame
|
|
|
Parameters
|
String name
The full name of the tag to delete, including any LD namespaces. This name can contain a wildcard to delete multiple tags.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
boolean updateText
If true, a search and replace will automatically be performed, replacing any references to the name of this tag with the text in the replace parameter. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
String replaceText
The text to use if updateText is true.
boolean keepFrame
If true, and the tag is either a frame or namespace containing frame tags, any frames that use this tag will be preserved on the page as an anonymous frame.
|
|
Returns
|
void. None.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
|
getAccolade name ns
|
|
|
Parameters
|
String name
The full name of the Accolade object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fAccolade. Returns the named fAccolade object.
|
|
getBookmark name ns
|
|
|
Parameters
|
String name
The full name of the bookmark to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fBookmark. Returns the named bookmark object.
|
|
getContexts name ns
|
|
|
Parameters
|
String name
The full name of the context set object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fContexts. Returns the named context set object.
|
|
getControl name ns
|
|
|
Parameters
|
String name
The full name of the control object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fControl. Returns the named control object.
|
|
getDocumentSequence name ns
|
|
|
Parameters
|
String name
The full name of the Document Sequence object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fDocumentSequence. Returns the named fDocumentSequence object.
|
|
getFootnote name ns
|
|
|
Parameters
|
String name
The full name of the Footnote object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fFootnote. Returns the named fFootnote object.
|
|
getFrame name ns
|
|
|
Parameters
|
String name
The full name of the frame object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fFrame. Returns the named frame object.
|
|
getFunction name ns
|
|
|
Parameters
|
String name
The full name of the JS Function tag to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
Object. Returns the function associated with the named JS Function Tag object.
|
|
getGraphic name ns
|
|
|
Parameters
|
String name
The full name of the graphic tag to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fGraphic. Returns the named graphic object.
|
|
getIndex name ns
|
|
|
Parameters
|
String name
The full name of the Index object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fIndex. Returns the named fIndex object.
|
|
getLayer name ns
|
|
|
Parameters
|
String name
The full name of the layer object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fLayer. Returns the named layer object.
|
|
getLayerGroup name ns
|
|
|
Parameters
|
String name
The full name of the layer group object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fLayerGroup. Returns the named layer group object.
|
|
getNamedColor name type ns
|
|
|
Parameters
|
String name
The full name of the color object to find, including any LD namespaces.
int type
The type of color object to find. Value is one of fContent.NamedColorTypes to only find a color of that type or -1 to find any named color object with the specified name.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fNamedColor. Returns the named color object.
|
|
getNamespace name ns
|
|
|
Parameters
|
String name
The full name of the LD namespace to find, including any parent LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fStream. Returns the specified fNamespace object.
|
|
getPDFAction name ns
|
|
|
Parameters
|
String name
The full name of the PDF Action object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFAction. Returns the PDF Action object.
|
|
getPDFFormItem name type ns
|
|
|
Parameters
|
String name
The full name of the PDF Form object to find, including any LD namespaces.
int type
The type of PDF Form object to find. Value is one of fContent.PDFFormItemTypes to only find a PDF Form item of that type or -1 to find any PDF Form item with the specified name.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFFormItem. Returns the PDF Form object.
|
|
getPDFLayer name ns
|
|
|
Parameters
|
String name
The full name of the PDF Layer object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFLayer. Returns the PDF Layer object.
|
|
getPDFMediaAssets name ns
|
|
|
Parameters
|
String name
The full name of the PDF Media Assets object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFMediaAssets. Returns the fPDFMediaAssets object.
|
|
getPDFU3DView name ns
|
|
|
Parameters
|
String name
The full name of the PDF U3D View object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPDFU3DView. Returns the PDF U3D View object.
|
|
getPageSequence name ns
|
|
|
Parameters
|
String name
The full name of the Page Sequence object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPageSequence. Returns the named fPageSequence object.
|
|
getPublish name ns
|
|
|
Parameters
|
String name
The full name of the publish object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fPublish. Returns the named fPublish object.
|
|
getRaster name ns
|
|
|
Parameters
|
String name
The full name of the raster to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fRaster. Returns the named raster object.
|
|
getRules name ns
|
|
|
Parameters
|
String name
The full name of the rules object to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fRules. Returns the named rules object.
|
|
getStream name ns
|
|
|
Parameters
|
String name
The full name of the stream to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fStream. Returns the named stream object.
|
|
getTag name ns
|
|
|
Parameters
|
String name
The full name of the tag to find, including any LD namespaces.
fNamespace ns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fTag. Returns the named object, which will either be fStream, fGraphic, fRaster or fNamespace (depending on type).
|
|
gotoPage page
|
|
|
Parameters
|
fPage page
The page number to move to, or one of fContent.GotoPagePosition to go to an adjacent page.
|
|
Returns
|
fPage. Returns the page object at the position selected.
|
|
importGraphic name filename type link
|
|
|
Parameters
|
String name
The name of the graphic object to create.
fPath filename
The name and path of the file to be imported.
int type
The type of graphic to import. Value must be one of the ones listed in fGraphic.GraphicType
boolean link
If true, the file will be linked to the graphic object. Otherwise, the content will just be loaded into it.
|
|
Returns
|
fGraphic. The graphic object containing the loaded content, if successful.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
INVALID_TYPE: The tag already exists, but is not a valid graphic object.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
importJS name filename link function
|
|
|
Parameters
|
String name
The name of the text stream to create and load the content into. The type of stream will be fTag.TYPE_TEXT.
fPath filename
The name and path of the file to be imported.
boolean link
If true, the file will be linked to the text stream. Otherwise, the content will just be loaded into it.
boolean function
If true, the type of stream will be fTag.TYPE_JS_FUNCTION, otherwise it will be fTag.TYPE_JS_SCRIPT
|
|
Returns
|
fStream. The text stream containing the loaded content, if successful.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
INVALID_TYPE: The tag already exists, but is not a valid stream object.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
importRaster name filename type link page pdfbox lowres lowresMaxX lowresMaxY
|
|
|
Parameters
|
String name
The name of the raster object to create.
fPath filename
The name and path of the file to be imported.
int type
The type of raster to import. Value must be one of the ones listed in fRaster.RasterType
boolean link
If true, the file will be linked to the raster object. Otherwise, the content will just be loaded into it. This parameter defaults to true.
int page
The page number to import, if the raster being imported is a PDF file. This value starts from 1 for the first page.
int pdfbox
The PDF box to use, if the raster being imported is a PDF file. Value must be one of the ones listed in fRaster.PDFBoxType
int lowres
Whether the image should be imported at a lower resolution for displaying on screen. Value must be one of the ones listed in fRaster.LowresModes. This parameter defaults to fRaster.LOWRES_NONE.
int lowresMaxX
If lowres is fRaster.LOWRES_RESOLUTION, the maximum number of horizontal pixels allowed in the imported raster. If lowres is fRaster.LOWRES_FILESIZE, the maximum amount of memory allowed in kilobytes.
int lowresMaxY
If lowres is fRaster.LOWRES_RESOLUTION, the maximum number of vertical pixels allowed in the imported raster. If lowres is fRaster.LOWRES_FILESIZE, this parameter is ignored.
|
|
Returns
|
fRaster. The raster object containing the loaded content, if successful.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
INVALID_TYPE: The tag already exists, but is not a valid raster object.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
importText name filename link options
|
|
|
Parameters
|
String name
The name of the text stream to create and load the content into. The type of stream will be fTag.TYPE_TEXT.
fPath filename
The name and path of the file to be imported.
boolean link
If true, the file will be linked to the text stream. Otherwise, the content will just be loaded into it.
String options
The options for loading the text stream, taken from the tft macro. Defaults to exact copy ("1eutyj").
|
|
Returns
|
fStream. The text stream containing the loaded content, if successful.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
INVALID_TYPE: The tag already exists, but is not a valid stream object.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
insertPage width height layers num_pages
|
|
|
Parameters
|
fLength width
The width of the page to create.
fLength height
The height of the page to create.
fLayerGroup layers
The set of layers to add to the page after creating it, or null for the page to be created empty. If this parameter is not provided or undefined, the frames on the current page will be copied following the frame.copyMode parameter.
int num_pages
The number of pages to create. If not provided, only 1 page will be created.
|
|
Returns
|
fPage. Returns the first newly created fPage object.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
|
loadNamespace name filename link runAutoexec merge
|
|
|
Parameters
|
String name
The name of the namespace object to load the content into. If the object does not exist, it will be created. If this name is different to the namespace contained in the source file, the content tags will automatically be renamed.
fPath filename
The name and path of the file from which the namespace will be loaded.
boolean link
If true, the file will be linked to the namespace object. Otherwise, the content will just be loaded into it.
boolean runAutoexec
If true, the autoexec script in the file will be run if present.
int merge
How to handle clashes between tags in the namespace and tags already existing in the template. Values are in fContent-NamespaceMergeModes.
|
|
Returns
|
fNamespace. The namespace object containing the loaded content, if successful.
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
INVALID_TYPE: The tag already exists, but is not a valid namespace object.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
renameTag from to fromns tons updateText
|
|
|
Parameters
|
String from
The full name of the tag to rename, including any LD namespaces. This name can contain a wildcard to rename multiple tags.
String to
The full name of the tag to rename, including any LD namespaces. This name can contain a wildcard to rename multiple tags.
fNamespace fromns
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
fNamespace tons
The LD namespace to search for the tag in. If not provided, the root namespace will be used.
boolean updateText
If true, a search and replace will automatically be performed, replacing any references to the old name of this tag with the new name. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
|
|
Returns
|
fTag. Returns the named object, which will either be fStream, fGraphic, fRaster or fNamespace (depending on type).
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
|
runStream tag
|
|
|
Parameters
|
fStream tag
The stream to run.
|
|
Returns
|
void. None.
|
|
saveNamespace name filename
|
|
|
Parameters
|
fNamespace name
The namespace object to save.
fPath filename
The name and path of the file to save the namespace into.
|
|
Returns
|
void. None.
|
|
saveNamespaceLE name filename
|
|
|
Parameters
|
fNamespace name
The namespace object to save.
fPath filename
The name and path of the file to save the namespace into.
|
|
Returns
|
void. None.
|