Issue T20422
Visible to All Users

Adjust the size, padding, and font size of input boxes

created 5 months ago (modified 5 months ago)

[Ticket cloned from T20042: Survey PDF UI Chnages]

Hello Jane,
How can we adjust the size, padding, and font size of input boxes?

Answers approved by surveyjs Support

created 5 months ago (modified 5 months ago)

Hello,
You can specify the font size of the entire PDF document using the fontSize option. Please refer to Font Size.
To modify input field paddings, use the static SurveyHelper.VALUE_READONLY_PADDING_SCALE setting.

The size of an input box will be enlarged or decreased based on the specified font size and padding options. Please refer to the following demo: View Plunker.

Should you have any questions, let me know.

    Show previous comments (10)

      Hi,
      Any update on this ticket?

        Hello,
        Unfortunately, we don't have any news to share so far. We appreciate your patience. Please wait for our reply.

          Hello Shobhit,
          Our developers investigated this issue. Unfortunately, we couldn't reduce the font size of PDF AcroForms using the jsPDF API. It appears that, starting from version 2, the jsPDF ignores the maxFontSize setting (see this Stack Overflow issue). Therefore, increasing the padding between the text and field border is not possible.

          We have noted this inquiry for further research.

          Let me know if you have any further questions.