OpenTBS – read docx properties

  opentbs, php

Is there a way to access docx properties once an OpenTBS template is loaded?

$TBS->LoadTemplate($template, OPENTBS_ALREADY_UTF8);

I know that I could open the docx as a zip, access core.xml in docProps and parse the content to find for instance the document title.
There are also helper libraries that do this but it would be cleaner to do it using TBS.

Many thanks in advance.

Source: Ask PHP

LEAVE A COMMENT