Skip to content

Commit

Permalink
Revert "新增矩阵变换,解决exif跟印章旋转的问题"
Browse files Browse the repository at this point in the history
This reverts commit 908708c.
  • Loading branch information
heweisheng committed Jun 20, 2024
1 parent 908708c commit 73355e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions pdf2docx/layout/Blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ def _parse_block_vertical_spacing(self):

start_pos = block.bbox[idx] - dw
para_space = start_pos-ref_pos
if block.is_text_block:
para_space //= len(block.lines._instances)

# modify vertical space in case the block is out of bottom boundary
dy = max(block.bbox[idx+2]-bbox[idx+2], 0.0)
para_space -= dy
Expand Down
3 changes: 0 additions & 3 deletions pdf2docx/table/TablesConstructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ def top_bottom_boundaries(y0, y1):
if isinstance(self._parent, Cell) and \
table.num_cols*table.num_rows==1 and table[0][0].bg_color is None:
continue
# one line table is error
if isinstance(self._parent, Cell)==False and table.num_cols*table.num_rows==1:
continue

table.set_stream_table_block()
tables.append(table)
Expand Down

0 comments on commit 73355e7

Please sign in to comment.