updated
This commit is contained in:
@@ -99,4 +99,4 @@ final_png_path = base / "output" / final_png_name
|
||||
# Clean up intermediate PDFs
|
||||
for path in [shifted_pdf, logo_output, final_pdf_path]:
|
||||
if path.exists():
|
||||
path.unlink()
|
||||
path.unlink()
|
||||
@@ -2,7 +2,7 @@ import fitz # PyMuPDF
|
||||
|
||||
LETTER_WIDTH = 792 # 8.5 inches
|
||||
LETTER_HEIGHT = 612 # 11 inches
|
||||
BOTTOM_MARGIN = 30
|
||||
BOTTOM_MARGIN = 60
|
||||
|
||||
def adjust_layout(input_path, output_path, shift_amount):
|
||||
doc = fitz.open(input_path)
|
||||
|
||||
Reference in New Issue
Block a user