Skip to content

Commit

Permalink
added the standar selection function
Browse files Browse the repository at this point in the history
  • Loading branch information
vinissou committed Oct 3, 2024
1 parent 20ddb19 commit 4ff5ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 65 deletions.
62 changes: 0 additions & 62 deletions modules/page_sizes.py

This file was deleted.

6 changes: 3 additions & 3 deletions pdf_page_size_fixer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import fitz
from modules import messages
from modules import page_sizes
from modules.paper_sizes import paper_size


parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -29,8 +29,8 @@
rotation = page.rotation
page.set_rotation(0)

page_y = page_sizes.ISO["A4"]["y"] # this wil be a dedicated
page_x = page_sizes.ISO["A4"]["x"] # function
page_y = paper_size("A4")["y"] # this wil be a dedicated
page_x = paper_size("A4")["x"] # function
pageH = imglist[2]
pageW = imglist[3]
mediaH = page.mediabox[2]
Expand Down

0 comments on commit 4ff5ade

Please sign in to comment.