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

Count words per page #435

Open
rvanlaak opened this issue Nov 24, 2014 · 4 comments
Open

Count words per page #435

rvanlaak opened this issue Nov 24, 2014 · 4 comments

Comments

@rvanlaak
Copy link

rvanlaak commented Nov 24, 2014

My scenario is a user that selects a single page from a docx it has uploaded. I'd like to know the amount of words on the selected page, and the total amount of words of the entire document. It would be great if this could be almost identical to the number of words MS Word shows.

I've been reading the docs carefully, in order to estimate whether or not it will be possible to count the total amount of words, and the words per page. Is PHPWord able to read all sorts of docx files, or what does happen when the reader gets across a unrecognized element? (Like the new PivotChart visualizations in Office 2013)


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

@ghost
Copy link

ghost commented Dec 9, 2014

Hello,

At the moment, I don't think it is possible to get the number of words in a selected page. When you parse docx with PHPWord, it didn't recognize word but characters with the same style and try to merge them in one thing. If you get modifications on the same word, phpword will think that they are different thing.

Maybe in the future.

@rvanlaak
Copy link
Author

Will phpword be able to recognize the new PivotChart visualizations?

@ghost
Copy link

ghost commented Dec 10, 2014

I don't know.

@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
Labels
None yet
Development

No branches or pull requests

2 participants