|
The issue could have a lot of possible reasons, partly depending on the source style.
You should put intermediate trace messages in order to get the name and the properties of the selected source style ($new_style), and not only the final result.
#lib_doc and doc_styles are existing here
my $new_style = $lib_doc->textStyle($hga);
my $rc = $doc_styles->createStyle($new_style, source=> $lib_style);
if(!$rc){
print "style could not be created\n";
}else{
print "style created $new_style \n";
my $prop = $doc_styles->styleProperties($rc);
print "Style properties -> " . Dumper($prop);
}
|