Question T7156
Visible to All Users

Custom PDF Rendering through HTML

created 4 years ago

Hello,

I have been working on exporting to pdfs and am running into many issues.

  1. While using .onRenderQuestion, I am getting the paneldynamic into this function. However, there is not clear visual separation between the different panels. Is there a way to separate them whether by header, whitespace, or anything else?

  2. When defining onRenderPanel, I am no longer getting the questions rendered. Is there a way I need to trigger the onRenderQuestion from the onRenderPanel in order to show the questions?

  3. Panel Titles are also missing from the pdf, even though the html for them are being generated. I have added the PDF I receive and the html I receive.

If you need more information, please let me know and I will do my best to get it to you. I am fairly new to this project and SurveyVue, so I would not doubt, that I am missing a bunch of small things.

Show previous comments (4)

    Hello,

    It is really difficult to determine issue in 1632 lines of code. Could you, please, create more succinct example and/or describe how to recreate issue step by step? What is the goal which you want to achieve? You can use this example on our site as base

    Thanks, Alex
    SurveyJS Team

    AS AS
    Andrew Stoddard 4 years ago

      I have gotten this figured out, while trying to recreate the issue in the smaller example, it was not occurring in the same way. I was able to fix the issue by creating a bit of a hack in using OnRenderPage.

        Hello,

        I was able to fix the issue

        Glad to know the issue has been resolved. Feel free to contact us in case of any further questions.

        Thanks, Serge
        SurveyJS Team