Question T6731
Visible to All Users

is there a good solution for pdf when the answer is too long for ck editor / comment?

created 4 years ago

Hello

when the answer is too long for comment question or ck editor questions, the pdf rendering will have issue that not showing all the answers.

  1. comment type questions. if answer is too long, because the whole answer is consider as a brick. and a brick can not exist in two different pages. it ended up trying to fit in 1 single page with parts of the answer chopped off.

Clipboard-File-1.png

Clipboard-File-2.png

plunker: https://plnkr.co/edit/eWZAWFb2LQpbP0Wo

  1. for ck editor answers rendered as image. it's pretty much the same thing. 1 image cannot exist in 2 pages, and parts of the answer got chopped off.

I'd like to know if there is a good way to handle these kind of situation.

Thanks.

Answers approved by surveyjs Support

created 4 years ago

Hello,

  1. At the current moment we recommend replace long comments with HTML question via SurveyJS API or SurveyPDF Adornerns mechanism
  2. If you are render CK Editor HTML as image then I can suggest split HTML parts to several HTML questions before export to PDF

Thanks, Alex
SurveyJS Team

    Show previous comments (1)

      Hello,

      Size of comment in your live sample is not long. I've expanded its size to three pages and export to PDF works much less then 11 seconds for me. Is this example spends more time for you? Or what size of your comment?

      Clipboard-File-1.png
      (example exported with last commit version of SurveyPDF)

      Thanks, Alex
      SurveyJS Team

        yea. it's really funny.

        it seems like this super long pdf generation time only happens on my machine.

        no worry about for it. I will see what I can do with it.

        Thanks!

          Hello,

          Fine! Feel free to contact us in case of any further questions

          Thanks, Alex
          SurveyJS Team