Forum


Replies: 1   Views: 513
How do i rotate a text box 180 degrees or flip the text vertically so that 6 becomes 9.
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by fur99qan  · 29-05-2023 - 11:23

I need a way to rotate a text box 180 degrees or flip it vertically. There seems to be no such option in the addTextBox documentation.
Furthermore, is it possible to add a footer in the last page of the document only? There are properties we can use to add a header or a footer in the first page only but is there one that we can use for the last page?

PhpDocx version 13.5
Premium License

Posted by admin  · 29-05-2023 - 11:35

Hello,

UPDATE: phpdocx 15.5 includes new options to rotate text boxes.

The current stable version of phpdocx doesn't include an option to set a custom rotation value with addTextBox. It's a work in progress that will be included in a future version of phpdocx.

Regarding the footer question, MS Word doesn't have a last page target when adding a header/footer. MS Word supports first (title), default and odd targets. To accomplish this task you need to create a new page section and add a footer, so it'll appear as the footer content in the last page (section). The addFooterSection method included in phpdocx 14 allows adding footers in specific sections.

Regards.