You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
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
The text was updated successfully, but these errors were encountered: