Skip to content

Commit

Permalink
Merge pull request #3 from e-zz/patch-1
Browse files Browse the repository at this point in the history
store page width and height
  • Loading branch information
thiswillbeyourgithub authored Dec 20, 2023
2 parents 69f087e + 95333f8 commit 6c36b79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ def annot_to_dict(
"y1": annot["rect"].y0,
"x2": annot["rect"].x1,
"y2": annot["rect"].y1,
"width": px - annot["rect"].x0,
"height": py - annot["rect"].y0,
"width": px,
"height": py,
},
"rects": [
{
"x1": annot["rect"].x0,
"y1": annot["rect"].y0,
"x2": annot["rect"].x1,
"y2": annot["rect"].y1,
"width": px - annot["rect"].x0,
"height": py - annot["rect"].y0,
"width": px,
"height": py,
} # for b in annot["boxes"]
],
"page": int(result["page"]),
Expand Down

0 comments on commit 6c36b79

Please sign in to comment.