Categories > OpenTBS general LibreOffice >

Change document properties with openTBS

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Paulo Tavares
Date: 2015-11-18
Time: 12:59

Change document properties with openTBS

Hello

Is it possible to change an odt document custom property?

I want to change a custom property on File > Properties > Custom...

Thank you
By: Skrol29
Date: 2015-11-18
Time: 14:23

Re: Change document properties with openTBS

Hi,

$TBS->PlugIn(OPENTBS_ADD_CREDIT, $custom_property_value, $custom_property_name);

Argument $custom_property_name is not documented yet.
By: Paulo Tavares
Date: 2015-11-19
Time: 11:27

Re: Change document properties with openTBS

Hi. Thank you for your response.

The command above will add the value, not replace it.

It would be nice to have a
OPENTBS_REPLACE_CREDIT where the value of the property would be replaced instead of semicolon separated.

Something like this:
} elseif ($Cmd==OPENTBS_REPLACE_CREDIT) {

            return $this->Misc_EditCredits($x1, false, false, $x2);

By the way... Great powerfull library you have here. Thank you very much.