Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To Know the remaining space left in a page when writing #277

Open
hari-web opened this issue Jun 12, 2014 · 2 comments
Open

To Know the remaining space left in a page when writing #277

hari-web opened this issue Jun 12, 2014 · 2 comments

Comments

@hari-web
Copy link

hari-web commented Jun 12, 2014

Is there any way to know the remaining space left in a page in phpword.
In my case, if writing a table using phpword, it may start in the bottom of the page, the content is going to next page but the table header remains the first page.
Uploading Capture.PNG . . .

Another Issue: if the content in the cells are big and we reach the end of the page, then some times it prints the row with partial content in the first page and then the remaining content with a new row in the next page.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ivanlanin ivanlanin added this to the 0.12.0 milestone Jun 12, 2014
@ivanlanin
Copy link
Contributor

No. PHPWord can't calculate that. AFAIK, to be able to do that, you have to be able to simulate the page rendering process. I don't think we will ever want to do that.

You can use tblHeader style to make your row header repeated on every new page and cantSplit style to force table row not to show partial content: http:https://phpword.readthedocs.org/en/develop/styles.html#table

@ghost ghost modified the milestones: 0.13.0, 0.12.0 Jan 3, 2015
@ghost ghost removed this from the v0.13.0 milestone Jul 30, 2016
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants