Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Golodkov committed Sep 6, 2024
1 parent 9b8087a commit be02a90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dedoc/readers/pdf_reader/pdf_base_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ def _shift_all_contents(self, all_lines_with_paragraphs: List[LineWithMeta], mp_
page_number = cell.lines[0].metadata.page_id if cell.lines and len(cell.lines) >= 1 else row_page_number
image_width, image_height = gost_analyzed_images[page_number][0].shape[1], gost_analyzed_images[page_number][0].shape[0]
shift_x, shift_y = gost_analyzed_images[page_number][1].x_top_left, gost_analyzed_images[page_number][1].y_top_left
row[i_cel].shift(shift_x=shift_x,
shift_y=shift_y,
image_width=image_width,
image_height=image_height)
row[i_cel].shift(shift_x=shift_x, shift_y=shift_y, image_width=image_width, image_height=image_height)

# shift attachments
for i_att, attachment in enumerate(attachments):
Expand Down

0 comments on commit be02a90

Please sign in to comment.