|
i have 2 documents A and B. In document A i define some styles ( paragraph + character ). I then use replaceElement to copy all the named styles
if($doc){
#now copy the named style root of the source file
my $named_style_root_to_replace = $my_target_styles->getNamedStyleRoot();
if($named_style_root_to_replace){
$my_target_styles->replaceElement($named_style_root_to_replace, $named_style_root);
}
}
the style is copied, however the font of the copied style differs from the original.
|