OpenWGA 7.9 - TMLScript referenceTMLContext "this"
attachScaledImage(doc, scaler [, targetFileName))
|On object||TMLContext "this"|
Stores the image data on an ImageScaler object as attachment on a document
An ImageScaler object contains data of an image which may have been scaled or otherwise modified. This method extracts the image data and stores it as a file attachment on some WGAPI document that is capable of holding file attachments, for example a content document or a file container.
doc (WGAPI object WGDocument)
The document to attach the image to
The ImageScaler object holding the image data
targetFileName (String, optional):
The file name under which the image is to be attached to the document, without suffix which is automatically appended based on the output type. Omit this parameter to use the name of the file that initially was loaded to the ImageScaler object. However this may not be available if the image data was not loaded from a file.