Skip to content

Commit 58044b1

Browse files
author
Hiromu Hota
committed
Restore pdftotree's tag but remain commented-out
1 parent 846e4ec commit 58044b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pdftotree/TreeExtract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def get_char_boundaries(self, mention):
335335
def get_html_others(self, tag: str, box: List[float], page_num: int) -> Element:
336336
element = self.doc.createElement("div")
337337
element.setAttribute("class", "ocrx_block")
338+
# element.setAttribute("pdftotree", tag)
338339
top, left, bottom, right = tuple([int(x) for x in box])
339340
element.setAttribute("title", f"bbox {left} {top} {right} {bottom}")
340341
elems: List[LTTextLine] = get_mentions_within_bbox(

0 commit comments

Comments
 (0)