DocxMerge icon indicating copy to clipboard operation
DocxMerge copied to clipboard

Feature Request: Page break between each merge

Open cresc opened this issue 10 years ago • 3 comments

Hi,

Thanks for a great library, I would like to add a Page Break between each merge, is there a way I can implement this?

Regards,

Rob

cresc avatar Mar 09 '15 22:03 cresc

Hello! Thank you for your interest. The main purpose of this library is a really simple merging of two already existing docx files (task that I do in my work very often). Adding additional content or generating docx files is more complex task and has already been resolved by other libraries like PHPWord or PHPDocx and you should try to use them.

But of course it is possible to extend this library. All that you should do is to add some xml to the end of you document inside docx like this:

<w:p> <w:r> <w:br w:type="page" /> /w:r/w:p

2015-03-10 1:13 GMT+03:00 cresc [email protected]:

Hi,

Thanks for a great library, I would like to add a Page Break between each merge, is there a way I can implement this?

Regards,

Rob

— Reply to this email directly or view it on GitHub https://github.com/krustnic/DocxMerge/issues/1.

krustnic avatar Mar 10 '15 18:03 krustnic

added the code with page break as a param here: https://github.com/jupitern/DocxMerge

jupitern avatar Oct 16 '15 18:10 jupitern

Correcting @jupitern's last comment - his package changed names: https://github.com/jupitern/docx

squatto avatar Dec 14 '17 07:12 squatto