Hello,
I have been working on exporting to pdfs and am running into many issues.
-
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?
-
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?
-
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.
Hello,
We will investigate your questions and write back to this thread
Thanks, Alex
SurveyJS Team
I have run into another issue as well.
By manually converting each panel and question to html, I was able to get the headers showing up. Using a <p> tag with margin left set to 2em, I was able to indent the questions and answers as well. However, on the first line of each new page, the margin is being moved back to the far left of the page, as seen in the PDF attached. Is there a better way to indent these individual html elements?
Hello,
Could you share us a live sample (in Plunker for example) with the issue? Or many samples in case of multiple issues. Please simplify you samples to leave code only referred to the issue (with minimal-sized SurveyJSON). So we can investigate your case and write back some solution/recommendation/explanation
Thanks, Alex
SurveyJS Team
I have made a Plunker here, It is not perfectly minimal, but it has all the information I needed to recreate the issue,
Plunker - SurveyPDF exporting dynamic panel (plnkr.co)
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
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,
Glad to know the issue has been resolved. Feel free to contact us in case of any further questions.
Thanks, Serge
SurveyJS Team