Make a tkinter form that store the data and populates a pdf

import PyPDF2
import sqlite3
import tkinter as tk

def populate_acord_125(data):
template_path = ‘/Users/ryanberg/PycharmProjects/pythonProject/Acord 125.pdf’
output_path = ‘/Users/ryanberg/PycharmProjects/pythonProject/filled_acord_125.pdf’

with open(template_path, 'rb') as template_file:
    pdf_reader = PyPDF2.PdfReader(template_file)
    pdf_writer = PyPDF2.PdfWriter()

    for page_num in range(len(pdf_reader.pages)):
        page = pdf_reader.pages[page_num]

        if '/Annots' in page:
            annotations = page['/Annots']

            for annotation in annotations:
                field = annotation.get_object()
                if '/T' in field and field['/T'][1:-1] in data:
                    field.update(
                        PyPDF2.generic.TextStringObject(data[field['/T'][1:-1]])
                    )
        pdf_writer.add_page(page)

    with open(output_path, 'wb') as output_file:
        pdf_writer.write(output_file)

def submit_form(entries):
data = {}
for entry in entries:
field_name = entry[0]
field_value = entry[1].get()
data[field_name] = field_value
print(f"{field_name}: {field_value}")

populate_acord_125(data)

print("ACORD 125 form filled successfully!")

def main():
root = tk.Tk()
root.title(“ACORD 125 Form”)

fields = [
    "Today's Date",
    "Agency Name",
    "Agency Contact Name",
    "Agency Phone Number",
    "Agencies Email",
    "Effective Date",
    "Insureds Full Name",
    "Insureds Phone Number",
    "Mailing Address",
    "Date Business Started",
    "Property Address",
    "Year Built",
    "Number of Employees",
    "Annual Revenue",
    "Percentage Occupied",
    "Description of Business Operations",
    "Prior Carrier",
    "Any Losses"
]

entries = []

for i, field in enumerate(fields):
    tk.Label(root, text=field).grid(row=i, column=0)
    entry = tk.Entry(root)
    entry.grid(row=i, column=1)
    entries.append((field, entry))

submit_button = tk.Button(root, text="Submit", command=lambda: submit_form(entries))
submit_button.grid(row=len(fields), columnspan=2)

root.mainloop()

if name == “main”:
main()

The pdf gets created but keeps coming out blank