I saw many post about changing picture in OpenTBS but I don't understood how to do that. I have a .odt file which has an image and I need to replace it from php with another one. From documentation I see the Example: [ onshow.x;ope=changepic] but I have no idea where I have to put this line. I've also tried to use this code below but nothing happens.
"ticket.odt" has an image (it has $PicRef description) which I would like to change.
$TBS= new clsTinyButStrong;
$TBS->PlugIn(TBS_INSTALL, OPENTBS_PLUGIN);
$TBS->LoadTemplate("Ticket/ticket.odt");
$TBS->PlugIn(OPENTBS_CHANGE_PICTURE, $PicRef, $logo );
As documentation $PicRef is a string that is saved in the Title or the Description of the picture and $logo is the path for picture file that will be copied inside the document Could someone explain me how it works and what I have to do?