Spaces:
Sleeping
Sleeping
Update findInitialMarkups.py
Browse files- findInitialMarkups.py +4 -2
findInitialMarkups.py
CHANGED
|
@@ -570,8 +570,10 @@ def headersfrompdf(filePath):
|
|
| 570 |
hierarchy = build_header_hierarchy(doc,toc_pages, most_common_font_size, most_common_color, most_common_font)
|
| 571 |
assign_numbers_to_headers(hierarchy)
|
| 572 |
listofheaders=print_tree_with_numbers(hierarchy,listofheaders=[])
|
| 573 |
-
print(listofheaders)
|
| 574 |
-
|
|
|
|
|
|
|
| 575 |
|
| 576 |
|
| 577 |
|
|
|
|
| 570 |
hierarchy = build_header_hierarchy(doc,toc_pages, most_common_font_size, most_common_color, most_common_font)
|
| 571 |
assign_numbers_to_headers(hierarchy)
|
| 572 |
listofheaders=print_tree_with_numbers(hierarchy,listofheaders=[])
|
| 573 |
+
# print(listofheaders)
|
| 574 |
+
full_text = "\n".join(listofheaders)
|
| 575 |
+
# print(full_text)
|
| 576 |
+
return full_text
|
| 577 |
|
| 578 |
|
| 579 |
|