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

Fillable form field limits #2101

Closed
dkrasnikow opened this issue Mar 18, 2024 · 3 comments
Closed

Fillable form field limits #2101

dkrasnikow opened this issue Mar 18, 2024 · 3 comments
Labels
feature New feature that should be supported good first issue Issues that can be quite easily solved by Python developers with a good CSS background
Milestone

Comments

@dkrasnikow
Copy link

Hi all,

While trying to create a PDF with fillable forms, I've noticed that the character input limit provided in the source code isn't respected in the output PDF file, e.g.

<input type="text" maxlength="50" placeholder="[Enter company name address]" autocomplete="on" wrap="soft">

doesn't produce any errors when printing. However, when I try to enter more than 50 characters into this field, it works.

The same concerns textarea.

Is this an expected behavior or am I missing something? Thank you for any assistance in advance.

@liZe
Copy link
Member

liZe commented Mar 18, 2024

Is this an expected behavior or am I missing something? Thank you for any assistance in advance.

It’s not supported yet. Looks like the feature is actually available in the PDF specification, that seems "quite easy" to support.

Interested in opening a pull request? I can guide you, of course!

@liZe liZe added feature New feature that should be supported good first issue Issues that can be quite easily solved by Python developers with a good CSS background labels Mar 18, 2024
@dkrasnikow
Copy link
Author

Is there really anything easy about PDF format? )) I could, of course, open a pull request, but unfortunately I am much more a tech writer rather than an engineer (however, quite a happy tech writer since I've found your library and can finally stop using a browser for PDF output :P ). So unfortunately the only use of me at this point perhaps would be my feedback.

@grewn0uille grewn0uille added this to the 62.0 milestone Mar 19, 2024
@grewn0uille
Copy link
Member

@dkrasnikow, if you can give a try to the main branch, your feedback is welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported good first issue Issues that can be quite easily solved by Python developers with a good CSS background
Projects
None yet
Development

No branches or pull requests

3 participants