surveyjs / survey-pdf

Supplementary component to the SurveyJS Form Library to download surveys as PDF files and generate editable PDF forms.
https://surveyjs.io/pdf-generator/examples/survey-pdf-export/
Other
62 stars 32 forks source link

pdf is not rendering the widgets and is not setting the answers #9

Closed gustavo-campos closed 4 years ago

gustavo-campos commented 4 years ago

components I'm using and their versions

"survey-angular": "1.5.17", "survey-creator": "1.5.17", "survey-knockout": "1.5.17", "survey-pdf": "1.5.17", "surveyjs-widgets": "1.5.17"

code as I'm generating the pdf

const surveyPDF = new SurveyPDF.SurveyPDF(SurveyJson, options);
console.log(this.DxFormData.AnswerJson);
surveyPDF.data = this.DxFormData.AnswerJson;
surveyPDF.save();

html is being rendered, and set the values as image below

html

but the pdf is not being set the values and the widgets is distorted, as image just below

pdf

gologames commented 4 years ago

Hello,

Sorry for late response. If you are using SurveyAngular, then there is known issue with SurveyPDF rendering (missing answers too) in Angular app. More details about this problem and workaround here

Otherwise could you share us a work sample with the issue? So we can investigate it

Thanks, Alex SurveyJS Team

gustavo-campos commented 4 years ago

Hello,

Sorry for late response. If you are using SurveyAngular, then there is known issue with SurveyPDF rendering (missing answers too) in Angular app. More details about this problem and workaround here

Otherwise could you share us a work sample with the issue? So we can investigate it

Thanks, Alex SurveyJS Team

PDF search is not rendering the signaturepad widget. I'm in the latest version of angular at 1.5.18.

gologames commented 4 years ago

Hello,

We can't reproduce issue on our side. Export PDF with custom widgets example on SurveyAngular works fine for me (complete survey and press Save to PDF button on the top). Also I added custom widgets to PDF export of our SurveyJS Angular App Quickstart repository. You can clone it and modify as you need

Thanks, Alex SurveyJS Team