PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.25k stars 2.69k forks source link

Calculate position of elements to insert page breaks #793

Open KRav007 opened 8 years ago

KRav007 commented 8 years ago

hi, I'm wondering, if it's possible to calculate the position of text-containers. Reason why. I will have dynamic text lengths and in order to that I need a calculation of the space, to avoid cutted content and insert dynamic page breaks

Is this possible? With tcpdf you can track the coordinates of elements.

Thanks for your hints.

Cheers Kai

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33887747-calculate-position-of-elements-to-insert-page-breaks?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github).
agwidarsito commented 8 years ago

Interested in this myself too!

KRav007 commented 8 years ago

I'm not sure if its possible.My currently approach is, to insert page breaks in html on client-side and split (on breaks) the html chunk into a array on server. This I will use to make a docx