Input vs. HTML Field Height / Dimensions

11 December, 2018 13:37:12
jstraete
Topics: 34
Messages: 111
I am having a hard time understanding an issue I have with dimensions I have on input vs. HTML fields. Here is my setup:

HTML field - 491x11 dimensions, 18x105 position, font size 9px, line height 9px, border is 1 for top, left, right, and bottom.
Input field - 88x11 dimensions, 517x105 position, font size 9px, border is 1 (no line height option in the properties here, but the line height in my settings is 9px, so it should match the HTML field).

So, both of these fields should be the same height, yet they're not. Here is a video I have showing this: https://www.youtube.com/watch?v=s5XTQRCv8Ns&feature=youtu.be (about 1min in you will see the PDF preview).

Another thing I don't understand on this is that when I click into the input field, the text moves down and gets cut off at the bottom, and then stays there after editing it. Why is it moving at all?

My end goal is to have a both boxes 11px tall with a border, and the font size in it to be 9px, and all of the text to be visible (and stay visible after editing).
11 December, 2018 17:58:44
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

1st issue is confirmed (Size of "HTML" element bigger than set). We are working on fix so expect please update in nearest time.

Regarding 2nd issue, unfortunately when field is clicked and edited - it's controlled by "PDF" viewer, it's default PDF behavior. You can try to unset "Generate Appearance" checkbox inside E2Pdf Template but in this case styles will depend on which "PDF" viewer used by user.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 December, 2018 19:39:52
jstraete
Topics: 34
Messages: 111
Thank you for the response, I will watch for an update to the plugin to appear. Along these lines, after I generate a PDF, if I send it to the printer without editing any text in any input fields, everything prints out fine. However, if I do edit an input field (or text area field), a thin border will appear around the field when it prints out.

I attached a picture showing this on a text area field. I have a rectangle set at 4px around the text area field, which is the outer line showing in the image that should appear as it is, and then the inner line with the red arrow pointing to it is a line generated from the text area box that I edited before printing it. Is there some PDF setting that causes the border line to appear around input and text area fields if the fields have been edited (if I didn't edit this field and printed it, only the outer line appears as is desired)?
12 December, 2018 03:01:19
E2Pdf
Support
Topics: 7
Messages: 3335
Issue with showing border after editing must be fixed now and it must not appear over "textarea" or any other fields if not set. (No plugin update required).

If border will still appear after editing fields, let us know please. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
12 December, 2018 15:28:22
E2Pdf
Support
Topics: 7
Messages: 3335
We updated our "render" engine and improved "HTML" field type in plugin update (1.03.01) to try keep correct spaces among render and editing template.

Let us know please if you face any other issues. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
12 December, 2018 16:51:02
jstraete
Topics: 34
Messages: 111
It works perfectly now with the new update, thank you! I have another question (hopefully much easier than this haha), but will open it in a new thread as it's unrelated to this. Thanks again!