Question T5057
Visible to All Users

Survey JS PDF - Dropdown answer font is too small

created 5 years ago

Hi,

The font size for DropDown answers are too small in the PDF. Here’s a plunkr you can use to test: https://plnkr.co/edit/CGkpr2UufhJqMskJ

I tried using options.controller.fontSize to change the font size of the dropdown in the plunkr above, but it is not take effect. Instead, it is increasing the font size of the questions that come after the dropdown.

Thanks!

::DISCLAIMER::


The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.


Answers approved by surveyjs Support

created 5 years ago

Hello,

The options.controller.fontSize used for "generate flat bricks" of new question in render pipeline. If you set it in onRenderQuestion event then it affected on the next questions. To increase size of dropdown question's field you can set options.controller.fontSize, generate dropdown question's flat bricks again via options.repository and return font size back. Here live sample in plunker

Clipboard-File-1.png

Thanks, Alex
SurveyJS Team

    Show previous comments (10)

      Hello,

      We investigated ability to set font size of text inside interactive fields and found a solution. Now we introduce fontSize property for every PdfBrick (element of exported survey in SurveyPDF terms) via this commit (it will available with next minor update). By default this font size equal to controller font size (same as in SurveyPDF options). As a result font size of all parts in matrix have same font size in both display and interactive modes. Below you can see your exported survey with font size equal 10:

      Clipboard-File-1.png

      Thanks, Alex
      SurveyJS Team

      SG SG
      saswat.gorkhali 4 years ago

        Hi Alex,

        Has this change been pushed to the latest 1.8.4 version?

        Also, can you please share the plunkr where you implemented this new change?

        Thanks!

          Hello,

          This change available from 1.8.1 version. Here is live sample in plunker

          Thanks, Alex
          SurveyJS Team