Posted on 2008-11-25 03:23:35-08 by msingh
Cannot create textbox with createFrame
I have the following code : subroutine call :
placetextbox($document,$page,"This is a test text.",2,3,1.5,9);
The subroutine is :
sub placetextbox { my ($document, $page,$text1,$textx,$texty,$texth,$textw)=shift(@_); my $frame = $document->createFrame ( 'name' => "Frame 1", 'page' => $page, 'position' => "$textx,$texty", 'size' => "$textw cm,$texth cm" ); my $box = $document->appendElement ( $frame, 'draw:text-box', ); $document->appendParagraph ( attachment => $box, text => $text1 ); }
From what documentation exists on createFrame, I think I have used the correct syntax. However, this is producing a blank slide. Can anyone please point out what I am doing wrong ? Thanks.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.