Thread

Posted on Thu May 15 11:34:05 2008 by glider
change indentation of a paragraph style
i am trying to change the indentation of a style. i thought to first print all the properties of a named style, but it returns s string instead of a hash.
#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); }
just prints $VAR1 = '4/8'
Direct Responses: 7890 | Write a response
Posted on Fri May 16 13:43:37 2008 by jmgdoc in response to 7884
Re: change indentation of a paragraph style

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); }
Write a response