I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-01-21 20:45:52-08 by bob
TextBox Positioning
I am trying to use createTextBox to position the box on the page. Using just the example code
$doc->createStyle ( "TB", family => "graphic", parent => "objectwithshadow", properties => { 'style:vertical-pos' => 'from-top', 'style:horizontal-pos' => 'from-left', 'style:vertical-rel' => 'page', 'style:horizontal-rel' => 'page' } ); $doc->createTextBox ( page => "AnyPageName", name => "The Box", size => '12cm, 4cm', position => '8cm, 14cm', style => 'TB', content => "The text in the box" );
has not worked for me: the box always ends up in the same position, centered at the top of the page.
I can change the size of the box correctly.
The xml in the unzipped document looks like it should work, ie the position appears to be what I need.
Suggestions would be appreciated.

Thanks
Bob
Direct Responses: 4179 | Write a response