Skip to content
New issue

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

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

Already on GitHub? # to your account

Acroforms #2843

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Acroforms #2843

wants to merge 3 commits into from

Conversation

jmarks-joshua
Copy link

@jmarks-joshua jmarks-joshua commented Feb 27, 2025

#269

This is almost entirely copied from Heston1's PR #2373. I just fixed the conflicts and removed everything that was in there that is now implemented directly in pdfkit as the original PR uses @foliojs-fork/pdfkit which I think has now become the main branch for pdfkit, but I might have misunderstood.

When building the original PR it didn't work for me, there was an issue with @foliojs-fork/pdfkit & @foliojs-fork/fontkit not being installed and when I fixed that the only font that the text fields would display was some symbol font.

In my version the example seems to work, but not when using the font Roboto, I'm sure there are other font's that also won't work. It seems fine with Helvetica. In Roboto many characters (most upper case letters, all numbers and some lowercase letters) only show as a large space.

I'm fairly out of my depth with this as I know nothing about how fonts work, or what might cause this. Currently pdfkit doesn't support radio buttons or checkboxes, even though checkboxes very much seem to work other than not being able to set the initial value. Radio buttons seem not to really work, so I've just removed them from the example.

@liborm85 any guidance would be appreciated on what I need to do to get this in a mergeable state.

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

Successfully merging this pull request may close these issues.

1 participant