mlreportgen.dom.Document.getImageDirectory

Class: mlreportgen.dom.Document
Package: mlreportgen.dom

Get image folder of document

Description

example

imageDirectory = mlreportgen.dom.Document.getImageDirectory(path,type) gets the image folder of a document or template package located at the specified path and of the specified type (Microsoft® Word or HTML). This is a static method. Invoke it on the Document class.

Examples

expand all

Suppose that the main image folder of an HTML document named MyDoc.htmtx resides in images under the root of the package. To get the path, enter:

mlreportgen.dom.Document.getImageDirectory('MyDoc','html');
ans =

/images

Input Arguments

expand all

Path of the document or template package

Type document or template. For a Word document or template, specify 'docx'. For an HTML document or template, specify 'html'.

Output Arguments

expand all

The path of the image folder for the package.

Introduced in R2014b