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

Horizontal alignment of filled fields with pdf-form-fill.js #19

Open
MylesGearon opened this issue Jun 20, 2018 · 1 comment
Open

Horizontal alignment of filled fields with pdf-form-fill.js #19

MylesGearon opened this issue Jun 20, 2018 · 1 comment

Comments

@MylesGearon
Copy link

MylesGearon commented Jun 20, 2018

I'm running into problems with the default alignment of filled fields when using the pdf-form-fill.js script. I think I'm hoping that there's some way to set a default alignment for the form XObject that gets created in writeAppearanceXObjectForText().

Referencing Issue #12 I've been able to manually set a y-offset using TD worked well enough. But I'm trying to fill in a form that has fields that should have a mixture of horizontal alignments. There's a comment mentioning that you're not supporting the quadding of the containing acroform. My pdf knowledge is decidedly shaky, but I think "supporting" this would give me correct horizontal alignment in the form I'm trying to fill. If anyone has some pointers on edits I might make to happen It'd be a real lifesaver. I've been banging my head against this wall for quite a while now

@galkahana
Copy link
Owner

look into this:
https://github.com/galkahana/HummusJSSamples/tree/improve-form-filling

im working on a version that allows you to input a system font, and the code will take it from there (also properly aligning in vertical)

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