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 input sitting low #336

Open
MrShakes opened this issue Oct 13, 2018 · 4 comments
Open

Fillable input sitting low #336

MrShakes opened this issue Oct 13, 2018 · 4 comments

Comments

@MrShakes
Copy link

I'm filling this form fw4.pdf using the code below and it works however the text in the fields appear low in the fields and when the text is edited manually it then sits in the center of the field such as Yo232165321631J shown in this image
screen shot 2018-10-13 at 16 06 09

Ideally the text should be vertically centered in the field

Code:

var writer = hummus.createWriterToModify('fw4.pdf', {
      modifiedFilePath: "fileName.pdf"
 });

 var data = {
      "topmostSubform[0].Page1[0].Line1[0].f1_1[0]": "first",
      "topmostSubform[0].Page1[0].Line1[0].f1_2[0]": "second",
      "topmostSubform[0].Page1[0].Line1[0].f1_3[0]": "third"
  };

  fillForm(writer,data);
  writer.end();

System:
Node: 8.10
hummus: 1.0.90

@MrShakes
Copy link
Author

Created a fillable form using an older Adobe Acrobat pro(v10.0.0), read the form and filled, the text was hidden in the field until I clicked and edited then it became visible, is there a recommended software to use to avoid this issue?

@galkahana
Copy link
Owner

Just change the appearance code in tue form fill example to put the text in a diffwrent position. As for text not appearing sound like tye appearance stream is bad in some way...experiment with placing simple artifacts in there to try and figure out the problem

@tonybranfort
Copy link

@galkahana There are at least a couple other open issues re "text not appearing", or at least mentioned - #207, #223, #57 (comment) and the one I opened galkahana/HummusJSSamples#21 . I'm really trying to crack this nut but I'm not a pdf guy at all. I'm happy to do the keyboard banging to figure it out if you or someone would be able to provide some dumbed down direction or pointers to things to read. Eg - I'm not even sure what you mean by "the appearance stream" and "placing some simple artifacts in there". I've been reading and parsing with my pdf but I'm not seeing yet what's happening.

@Hatzl
Copy link

Hatzl commented Oct 29, 2018

#207
maybe my answer can help you..

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

4 participants