Question T8470
Visible to All Users

Problems rendering HTML block

created 3 years ago

We have 2 problems rendering HTML:

    1. Question after html ( only in a few cases ) overlaps text.
      Clipboard-File-1.png
    1. We tried a lot of different approaches to make the table full width. Is there a way to do it with htmlRenderAs: 'standard'?
      We really don't want to use htmlRenderAs: 'image', due to some other problems we came across.

Both cases are reproduced here:
https://jsfiddle.net/baggy/nw179rLu/1/

Answers approved by surveyjs Support

created 3 years ago

Hello,

Yes, most likely jsPDF can't correctly calculate table height in this case. Unfortunately SurveyJS PDF Export plugin is not supported custom free form PDF. Probably you can use the jsPDF autoTable plugin. Here is the working sample - https://plnkr.co/edit/3N6YbqQh44iSzbmJ?preview

Thanks, Serge
SurveyJS Team