Categories > TinyButStrong general >

(SOLVED) How to add page break using XML or using PHP (MS WORD)?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Acrolink
Date: 2015-08-29
Time: 11:02

(SOLVED) How to add page break using XML or using PHP (MS WORD)?

I create several docx documents inside a PHP loop using openTBS. I want to set PHP / openTBS to add a page at the very end of each generated file except for the last one (using loop position under PHP). But I have no idea how to do this with openTBS. Any ideas? Thanks.

Solution:
Page break before :-) No PHP, No openTBS hacks needed!
By: Skrol29
Date: 2015-09-01
Time: 15:09

Re: (SOLVED) How to add page break using XML or using PHP (MS WORD)?

Thanks
By: Ricardo Oliveira
Date: 2016-10-21
Time: 18:57

Re: (SOLVED) How to add page break using XML or using PHP (MS WORD)?

Dear Sirs,

Can you please help me to understand what it means when you say "Page break before"?

Do I have to edit in Ms Word the Template and just put a page break at the top of the document?

I am trying to create a document based on a template where the output will be a page per record on the database. I am stuck, any help will be apreciate.

Thks
By: Skrol29
Date: 2016-10-22
Time: 00:29

Re: (SOLVED) How to add page break using XML or using PHP (MS WORD)?

« Page break before » is a property you can set to a paragraph. Available in the paragraph properties dialogbox.

This is different from inserting a page-break from the ribbon "Insert / Page-break".