-
Notifications
You must be signed in to change notification settings - Fork 61
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
Acrobat Reader does not display values filled by HummusJs pdf-fill-form #21
Comments
Having same issue here. |
Is it possible it's due to being an XFA form? Ran across this: I don't know yet if these government forms are XFA. |
It is definitely one issue. This form is XFA, and therefore the XFA data must be edited in addition to the AcroForm data. This issue can be solved by adding an XFA editing implementation. i'll see how hard this is an might add it. Another thing is that this document is encrypted and got extensions. it might be that this means that this document is only meant to be edited in acrobat manually and not filled automatically. that is - to do this one has to learn how to override the encryption and extension. which may be considered hacking, and in any case may be hard to learn how to do. I'm gonna try to improve the form filling sample code, but it might just be that i won't be able to resolve this issue, especially if implementing XFA support wont be enough. I think it might not be enough...because if it was, then i think dropping XFA should have been enough...and i tried this and still the form didnt show up properly. b.t.w you can see that chrome ignores the whole encrypt/XFA elements, cause it shows the text fine. especially if using the new options i'm providing here to let the code use a system font and some known graphic options: |
Outstanding. Thanks for looking at this Gal. Please let me know what I can do. |
I merged improve-form-filling branch as i'm quite busy with other stuff, and it should be worthwhile to some of you. The merge allows you to provide default text options (size, color, font) to use when filling text fields.
There's still XFA update to handle, and whatever encryption issues to solve, and this is just one font for the whole form...and doesn't allow to use multiple per what's required by the specific field, but using this thing should help more forms into the fold. |
k. slight progress here. now, if i remove the XFA form....acrobat complains, but THE FORM LOOKS GOOD. it doesn't if i keep the XFA. so...there's room for optimism. if i can "fill" the XFA form with values, this might be a solution. with this extra enthusiasm, i'll try to see if i can patch something quick for that...if anyone wants to help, please do. |
k. additional. branch is here: |
Fantastic Gal :) Can you point me toward how I open the door to the XFA? Remember that you're talking to a PDF neophyte. I really know about next to nothing on PDFs but if you can point, I can start swinging. Really appreciate your time and effort on this. |
just look it up. XFA has nothing to do with PDF. |
you know what, i just saw another post with yet another someone not contributing code to the lib. im tired of this. im tired of ppl not learning what they need. tired of me having to do eveyrthing for other people who actually have projects. im done with this. enough. |
I totally get it Gal and I'm really sorry I triggered that. I didn't understand that XFA wasn't part of PDF but I'm checking it out. It's very clear that your contributions have helped many. We all develop our technical niches but I can tell you that PDF seems to be one area that seems to be lacking active ongoing opensource contributions from those that really know how they work - which is why I was very glad to run across HummusJS. But maybe now we're seeing why it's especially hard to keep those projects going. I get it. |
I'm trying to figure out why Acrobat Reader doesn't display values filled with HummusJS and
pdf-form-fill.js
. I can open the pdf in Chrome and see the filled field as expected but not when I open in Acrobat Reader. Clicking in the field also does not get the value to display.Using:
.TD(0,4.5)
added towriteAppearanceXObjectForText
inpdf-form-fill.js
to fix alignment as per Filled Text Position Off #12. But same issue even without that modification.Pdf with filled field (2.a. Family Name of Attorney)
g-28-out.pdf
The text was updated successfully, but these errors were encountered: