DocxMerge
DocxMerge copied to clipboard
Feature Request: Page break between each merge
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
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.
added the code with page break as a param here: https://github.com/jupitern/DocxMerge
Correcting @jupitern's last comment - his package changed names: https://github.com/jupitern/docx