Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filling a pdf with write_fillable_pdf does not work for this pdf #67

Open
XaverStiensmeier opened this issue Dec 15, 2024 · 1 comment

Comments

@XaverStiensmeier
Copy link

I am unsure whether I am just making an obvious mistake, but I tried to create myself some visual clues for the form fields, but the resulting generated pdf is unchanged:

PDF https://www.sparkasse-emh.de/content/dam/myif/spk-mittelmosel-emh/work/dokumente/pdf/allgemein/sepa_lastschriftmandat.pdf

from fillpdf import fillpdfs

# Get form fields from the PDF
form_fields = fillpdfs.get_form_fields("sepa_lastschriftmandat.pdf")
print(form_fields)

# Update form fields with their field names (for testing)
for key in form_fields:
    form_fields[key] = key  # Assign field name as value

print(form_fields) # change can be seen

# Write updated fields to a new PDF
fillpdfs.write_fillable_pdf("sepa_lastschriftmandat", "ls_form_names.pdf", form_fields, flatten=False)

I am unsure how to debug this as I am not getting an error.

@stillru
Copy link

stillru commented Dec 31, 2024

#68 - same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants