PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.31k stars 521 forks source link

Creating spaced text boxes #248

Open kirobo opened 8 years ago

kirobo commented 8 years ago

Can someone give an example of creating an equally spaced text boxes (like 5 for instance).

I want to create 4 text boxes of width 300 which are equally spaced. Can someone please help?

$x = (10*$i) + 300;
$y = $x * 100;
I'm trying to do it like this:
shape = $currentSlide->createRichTextShape()
                            ->setHeight(100)
                            ->setWidth(300)
                            ->setOffsetX($x)
                            ->setOffsetY($y);

Progi1984 commented 8 years ago

@kirobo Have you got a screen of the rendering ?