Main Content

mlreportgen.dom.Document.getCoreProperties

Class: mlreportgen.dom.Document
Namespace: mlreportgen.dom

Get document or template core properties

Description

corePropertiesOut = mlreportgen.dom.Document.getCoreProperties(path) returns the core OPC properties for the document or template that has the specified path.

example

Examples

expand all

import mlreportgen.dom.*;
myReport = Document("mydoc","docx");

append(myReport,"Hello world");

close(myReport);
coreProps = Document.getCoreProperties("mydoc.docx")
coreProps = 

  CoreProperties with properties:

          Category: []
     ContentStatus: []
           Created: '2014-Apr-07 14:33:00'
           Creator: []
       Description: []
        Identifier: []
          Keywords: []
          Language: []
    LastModifiedBy: ''
       LastPrinted: []
          Modified: '2024-Feb-14 20:33:00'
          Revision: '1'
           Subject: []
             Title: ''
           Version: []
               Tag: 'dom.CoreProperties:61'
                Id: '61'

Input Arguments

expand all

Path to the document or template, specified as a character vector or string scalar.

Data Types: char | string

Output Arguments

expand all

Core properties of the document or template, returned as a mlreportgen.dom.CoreProperties object.

Attributes

Statictrue

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2014b