|
Hello everybody,
I use an odp template in which I have saved some Graphics styles I use to create TextBoxes :
$content = ooDocument (.... member => "content"):
$styles = ooDocument (.... member => "styles"):
$slide = $content->getDrawPage(1);
content->createTextBox
(
name => "Title slide",
attachment => $slide,
size => '25.5cm, 2cm',
position => '0cm, 0cm',
style => 'Slide title',
content => "blah blah blah"
)
But when I try to update one of the styles I have created, it doesn't work. Here I try to change th
+e background color of the textboxes associated with the style 'Slide title' :
$styles->updateStyle
(
"Slide title",
properties =>
{
'fo:background-color' => '#ff0000'
}
);
I thought that maybe it doesn't work with this option because 'Slide title' is a Graphics style but
+ when I try to change for example draw luminance ('draw:luminance' => '100%') it doesn't work too.
So my question is : how can I update the background color (fill color of the box) of an existing Gr
+aphics style (used to create textboxes) in an odp template ?
|