accolades
|
|
Access
|
read-only
|
Returns
|
fAccolade[]
|
bookmarks
|
|
Access
|
read-only
|
Returns
|
fBookmark[]
|
colors
|
|
Access
|
read-only
|
Returns
|
fArray
|
contexts
|
|
Access
|
read-only
|
Returns
|
fContexts[]
|
controls
|
|
Access
|
read-only
|
Returns
|
fControl[]
|
events
|
|
Access
|
read-only
|
Returns
|
fPublishEvents
|
fonts
|
|
Access
|
read-only
|
Returns
|
fArray
|
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[]
|
pages
|
|
Access
|
read-only
|
Returns
|
fPage[]
|
pdfActions
|
|
Access
|
read-only
|
Returns
|
fArray
|
pdfFormItems
|
|
Access
|
read-only
|
Returns
|
fArray
|
pdfLayers
|
|
Access
|
read-only
|
Returns
|
fArray
|
pdfMediaAssets
|
|
Access
|
read-only
|
Returns
|
fArray
|
pdfU3DViews
|
|
Access
|
read-only
|
Returns
|
fArray
|
publishes
|
|
Access
|
read-only
|
Returns
|
fPublish[]
|
rasters
|
|
Access
|
read-only
|
Returns
|
fRaster[]
|
storedObjects
|
|
Access
|
read-only
|
Returns
|
fArray
|
streams
|
|
Access
|
read-only
|
Returns
|
fStream[]
|
tags
|
|
Access
|
read-only
|
Returns
|
fTag[]
|
tagsByType
|
|
Access
|
read-only
|
Returns
|
fArray
|
copyTagfromtofromnstons
|
|
Parameters
|
Stringfrom
The full name of the source tag to copy, including any PTC ALD namespaces.
Stringto
The name of the new tag to create.
fNamespacefromns
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
fNamespacetons
The PTC ALD 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.
|
createAccoladenamens
|
|
Parameters
|
Stringname
The name of the Accolade object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createBarcodenamewidthheightforegroundColorbackgroundColorbarcodevalue
|
|
Parameters
|
Stringname
The name of the graphic tag to create and generate the barcode into. The type of stream will be fTag.TYPE_GRAPHIC.
fLengthwidth
The width of the barcode.
fLengthheight
The height of the barcode.
fColorforegroundColor
The foreground color to use for the barcode.
fColorbackgroundColor
The background color to use for the barcode.
fBarcodebarcode
Either an fBarcode object containing the properties of the barcode, or an integer from fBarcode.BarcodeTypes specifying the type of barcode to create.
Stringvalue
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.
|
createBookmarknamens
|
|
Parameters
|
Stringname
The name of the tag to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createContextsnamens
|
|
Parameters
|
Stringname
The name of the context set object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createControlnametypens
|
|
Parameters
|
Stringname
The name of the control object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
inttype
The type of object to create. This must be one of the control object types listed in fControl.ControlType.
fNamespacens
The PTC ALD 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.
|
createDocumentSequencenamens
|
|
Parameters
|
Stringname
The name of the Document Sequence object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createFootnotenamens
|
|
Parameters
|
Stringname
The name of the Footnote object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createFramenamens
|
|
Parameters
|
Stringname
The name of the frame object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createFunctionnamefunctionns
|
|
Parameters
|
Stringname
The name of the tag to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
Objectfunction
A string containing JavaScript source code for the function to associate with the new tag, or a JavaScript Function object.
fNamespacens
The PTC ALD 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.
|
createIndexnamens
|
|
Parameters
|
Stringname
The name of the Index object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createLayernameunderlayns
|
|
Parameters
|
Stringname
The name of the layer object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
booleanunderlay
If true, the layer will be created as an underlay, otherwise it will be an overlay.
fNamespacens
The PTC ALD 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.
|
createLayerGroupnamens
|
|
Parameters
|
Stringname
The name of the layer group object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createNamedColorcolortypens
|
|
Parameters
|
Stringcolor
The name of the color object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
inttype
The type of the color object to create. Value is one of fContent.NamedColorTypes or defaults to creating a named color.
fNamespacens
The PTC ALD 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.
|
createNamespacenamens
|
|
Parameters
|
Stringname
The name of the PTC ALD namespace to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createPDFActionlayerns
|
|
Parameters
|
Stringlayer
The name of the PDF Action object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace.
fNamespacens
The PTC ALD 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.
|
createPDFFormItemnametypens
|
|
Parameters
|
Stringname
The name of the PDF Form object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace.
inttype
The type of PDF Form object to create. Value is one of fContent.PDFFormItemTypes to create a PDF Form item of that type.
fNamespacens
The PTC ALD 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.
|
createPDFLayerlayerns
|
|
Parameters
|
Stringlayer
The name of the PDF Layer object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createPDFMediaAssetslayerns
|
|
Parameters
|
Stringlayer
The name of the PDF Media Assets object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createPDFU3DViewlayerns
|
|
Parameters
|
Stringlayer
The name of the PDF U3D View object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace.
fNamespacens
The PTC ALD 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.
|
createPageChecksumReportreportmodebaseReportstartPageendPagelineElementpageNumberElementpageReformatElementformatElementprintElementpageShowString
|
|
Parameters
|
Stringreport
The name of the stream to write the report into. If this stream already exists, it will be overwritten.
intmode
Which type of report to create. Possible values are in fContent.PageChecksumModes.
fStreambaseReport
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.
intstartPage
The first page to include in the report.
intendPage
The last page to include in the report.
StringlineElement
The name of the element to wrap each line in the report. This defaults to "ck_line".
StringpageNumberElement
The name of the element to wrap each page number in the report. This defaults to "ck_page".
StringpageReformatElement
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".
StringformatElement
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".
StringprintElement
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".
StringpageShowString
The show string to use to format the page number This defaults to "$p".
|
Returns
|
fStream. The stream containing the checksum report.
|
createPageSequencenamens
|
|
Parameters
|
Stringname
The name of the Page Sequence object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createPublishnamens
|
|
Parameters
|
Stringname
The name of the publish object to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
fNamespacens
The PTC ALD 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.
|
createStoredObjectnameobjns
|
|
Parameters
|
Stringname
The name of the stored object tag to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
Objectobj
The object to store in the new tag.
fNamespacens
The PTC ALD namespace to create the tag in. If not provided, the root namespace will be used.
|
Returns
|
fTag. The tag containing the given object.
|
createStreamnametypens
|
|
Parameters
|
Stringname
The name of the tag to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
inttype
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.
fNamespacens
The PTC ALD 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.
|
createTagnametypens
|
|
Parameters
|
Stringname
The name of the tag to create. If the name contains a colon, the tag will be created in the specified PTC ALD namespace. Otherwise, the name must follow standard PTC ALD naming conventions.
inttype
What type of tag to create. The list of possible tag types is available in fTag.TagType.
fNamespacens
The PTC ALD 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.
|
deletePagenum_pages
|
|
Parameters
|
intnum_pages
The number of pages to delete. If not provided, only 1 page will be deleted.
|
Returns
|
void. None.
|
deleteTagnamensupdateTextreplaceText
|
|
Parameters
|
Stringname
The full name of the tag to delete, including any PTC ALD namespaces. This name can contain a wildcard to delete multiple tags.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
booleanupdateText
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.
StringreplaceText
The text to use if updateText is true.
|
Returns
|
void. None.
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
getAccoladenamens
|
|
Parameters
|
Stringname
The full name of the Accolade object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fAccolade. Returns the named fAccolade object.
|
getBookmarknamens
|
|
Parameters
|
Stringname
The full name of the bookmark to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fBookmark. Returns the named bookmark object.
|
getContextsnamens
|
|
Parameters
|
Stringname
The full name of the context set object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fContexts. Returns the named context set object.
|
getControlnamens
|
|
Parameters
|
Stringname
The full name of the control object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fControl. Returns the named control object.
|
getDocumentSequencenamens
|
|
Parameters
|
Stringname
The full name of the Document Sequence object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fDocumentSequence. Returns the named fDocumentSequence object.
|
getFootnotenamens
|
|
Parameters
|
Stringname
The full name of the Footnote object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fFootnote. Returns the named fFootnote object.
|
getFramenamens
|
|
Parameters
|
Stringname
The full name of the frame object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fFrame. Returns the named frame object.
|
getFunctionnamens
|
|
Parameters
|
Stringname
The full name of the JS Function tag to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD 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.
|
getGraphicnamens
|
|
Parameters
|
Stringname
The full name of the graphic tag to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fGraphic. Returns the named graphic object.
|
getIndexnamens
|
|
Parameters
|
Stringname
The full name of the Index object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fIndex. Returns the named fIndex object.
|
getLayernamens
|
|
Parameters
|
Stringname
The full name of the layer object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fLayer. Returns the named layer object.
|
getLayerGroupnamens
|
|
Parameters
|
Stringname
The full name of the layer group object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fLayerGroup. Returns the named layer group object.
|
getNamedColornametypens
|
|
Parameters
|
Stringname
The full name of the color object to find, including any PTC ALD namespaces.
inttype
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.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fNamedColor. Returns the named color object.
|
getNamespacenamens
|
|
Parameters
|
Stringname
The full name of the PTC ALD namespace to find, including any parent PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fStream. Returns the specified fNamespace object.
|
getPDFActionnamens
|
|
Parameters
|
Stringname
The full name of the PDF Action object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPDFAction. Returns the PDF Action object.
|
getPDFFormItemnametypens
|
|
Parameters
|
Stringname
The full name of the PDF Form object to find, including any PTC ALD namespaces.
inttype
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.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPDFFormItem. Returns the PDF Form object.
|
getPDFLayernamens
|
|
Parameters
|
Stringname
The full name of the PDF Layer object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPDFLayer. Returns the PDF Layer object.
|
getPDFMediaAssetsnamens
|
|
Parameters
|
Stringname
The full name of the PDF Media Assets object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPDFMediaAssets. Returns the fPDFMediaAssets object.
|
getPDFU3DViewnamens
|
|
Parameters
|
Stringname
The full name of the PDF U3D View object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPDFU3DView. Returns the PDF U3D View object.
|
getPageSequencenamens
|
|
Parameters
|
Stringname
The full name of the Page Sequence object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPageSequence. Returns the named fPageSequence object.
|
getPublishnamens
|
|
Parameters
|
Stringname
The full name of the publish object to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fPublish. Returns the named fPublish object.
|
getRasternamens
|
|
Parameters
|
Stringname
The full name of the raster to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fRaster. Returns the named raster object.
|
getStreamnamens
|
|
Parameters
|
Stringname
The full name of the stream to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
|
Returns
|
fStream. Returns the named stream object.
|
getTagnamens
|
|
Parameters
|
Stringname
The full name of the tag to find, including any PTC ALD namespaces.
fNamespacens
The PTC ALD 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).
|
gotoPagepage
|
|
Parameters
|
fPagepage
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.
|
importGraphicnamefilenametypelink
|
|
Parameters
|
Stringname
The name of the graphic object to create.
fPathfilename
The name and path of the file to be imported.
inttype
The type of graphic to import. Value must be one of the ones listed in fGraphic.GraphicType
booleanlink
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.
|
importJSnamefilenamelinkfunction
|
|
Parameters
|
Stringname
The name of the text stream to create and load the content into. The type of stream will be fTag.TYPE_TEXT.
fPathfilename
The name and path of the file to be imported.
booleanlink
If true, the file will be linked to the text stream. Otherwise, the content will just be loaded into it.
booleanfunction
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.
|
importRasternamefilenametypelinkpagepdfboxlowreslowresMaxXlowresMaxY
|
|
Parameters
|
Stringname
The name of the raster object to create.
fPathfilename
The name and path of the file to be imported.
inttype
The type of raster to import. Value must be one of the ones listed in fRaster.RasterType
booleanlink
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.
intpage
The page number to import, if the raster being imported is a PDF file. This value starts from 1 for the first page.
intpdfbox
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
intlowres
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.
intlowresMaxX
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.
intlowresMaxY
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.
|
importTextnamefilenamelinkoptions
|
|
Parameters
|
Stringname
The name of the text stream to create and load the content into. The type of stream will be fTag.TYPE_TEXT.
fPathfilename
The name and path of the file to be imported.
booleanlink
If true, the file will be linked to the text stream. Otherwise, the content will just be loaded into it.
Stringoptions
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.
|
insertPagewidthheightlayersnum_pages
|
|
Parameters
|
fLengthwidth
The width of the page to create.
fLengthheight
The height of the page to create.
fLayerGrouplayers
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.
intnum_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.
|
loadNamespacenamefilenamelinkrunAutoexecmerge
|
|
Parameters
|
Stringname
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.
fPathfilename
The name and path of the file from which the namespace will be loaded.
booleanlink
If true, the file will be linked to the namespace object. Otherwise, the content will just be loaded into it.
booleanrunAutoexec
If true, the autoexec script in the file will be run if present.
intmerge
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.
|
renameTagfromtofromnstonsupdateText
|
|
Parameters
|
Stringfrom
The full name of the tag to rename, including any PTC ALD namespaces. This name can contain a wildcard to rename multiple tags.
Stringto
The full name of the tag to rename, including any PTC ALD namespaces. This name can contain a wildcard to rename multiple tags.
fNamespacefromns
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
fNamespacetons
The PTC ALD namespace to search for the tag in. If not provided, the root namespace will be used.
booleanupdateText
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.
|
runStreamtag
|
|
Parameters
|
fStreamtag
The stream to run.
|
Returns
|
void. None.
|