Skip to content

Reading bullet point values #1187

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

Closed
GPrakruth opened this issue Mar 6, 2023 · 3 comments
Closed

Reading bullet point values #1187

GPrakruth opened this issue Mar 6, 2023 · 3 comments

Comments

@GPrakruth
Copy link

GPrakruth commented Mar 6, 2023

sample document.docx
Is there a possible way to read bullet point text and corresponding values
like the for example 1.1 Sample text is in bullet point format, can we get values of 1.1 as well while reading text from bullet points

toc = []
for para in document.paragraphs:
# print(para.style.name)
if para.style.name =='List Paragraph':
print(para._element.xpath('./w:pPr/w:numFmt/w:numId/w:val'))
# print(test.xpath('./w:ilvl')[0].get('w:val'))

tried the following code only to get none values, also tried "numPr" but same print is displaying None

@scanny
Copy link
Contributor

scanny commented Sep 24, 2023

Closing as inactive.

@scanny scanny closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2023
@sharmakrishn
Copy link

Hi, I also tried to extract bullet points from the docs but didn't find any way can any one tell me how can i do that?

@GPrakruth
Copy link
Author

this issue still persist, any update from developers on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants