feature: BlockItemContainer.iter_block_items()
See original GitHub issueI’d like to iterate over the elements of they document as they appear in it. For example if there is a paragraph a table and then a paragraph again, I want to get them in that order. AFAIK currently there are two properties on Document, paragraphs and tables but have no notion of ordering between them.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:13
- Comments:33 (10 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok got it working now! Changed it to:
Thanks for the help both of you!
Hi @scanny
your iter_block_items() parse paragraph and table in docx file. I’m a beginner in python. Could you please update to parse all headings (Heading 1, Heading 2,…etc), paragraphs and tables.
Thank you.