Parameter:
[attribute_name
|'-']? ['anyURI'|'hexBinary'|'base64Binary'|'XML'|'-']? [file_name
]?
This command is the opposite of setImage. It can be used to save to disk the image represented by explicitly selected element. See also extractObject.
This parameter specifies the name of the attribute containing the URL of the image file or directly containing the image data encoded in 'hexBinary
' or in 'base64Binary
'.
If this parameter is absent (or is '-
'), it is the selected element itself which contains the image URL or which directly contains the image data in 'hexBinary
', in 'base64Binary
' or in XML formats.
Specifies how the image is ``stored'' in the element or in the attribute. Data type 'XML
' is only allowed for elements (typically an svg:svg
element).
If this parameter is absent (or is '-
'), the data type is found using the grammar of the document. Of course, this cannot be guessed for documents conforming to a DTD (too weakly typed) and for invalid documents conforming to a W3C XML Schema.
Specifies the name of the file created by this command.
'%T
' specifies a temporary file name automatically generated by this command.
If specified file name ends with '.%X
', this string is replaced by a suffix corresponding to the format of the image. For example, this command can detect that the data compressed with gzip before being encoded in base64Binary is in fact GIF image data and in such case, it will replace '.%X
' by '.gif
'.
If this parameter is absent, a chooser dialog box is displayed to let the user specify where the image file is to be created.
This command returns the name of the image file it has created.
Examples:
extractImage extractImage fileref anyURI extractImage - extractImage data - /tmp/extracted.%X extractImage - XML %T