I am try to export pdf using Arabic language but the data not rendered.
this is my code
Code//get survey data
var surveyResultQuestion = getQuestionnaireDetails();
//get survey result data
var surveyResultAnswer = getSurveyResultDetails();
$.when(surveyResultQuestion, surveyResultAnswer).done(function(surveyResultQuestionResult, surveyResultAnswerResult) {
//Render Survey result https://surveyjs.io/Examples/Library/?id=survey-quiz-results&platform=jQuery&theme=defaultV2#content-js
const survey = new Survey.Model(JSON.parse(surveyResultQuestionResult.jsonDefinition));
survey.data = JSON.parse(surveyResultAnswerResult.jsonDefinition);
survey.mode = "display";
survey.questionsOnPageMode = "singlePage";
survey.showProgressBar = "off";
survey.showTimerPanel = "none";
survey.maxTimeToFinishPage = 0;
survey.maxTimeToFinish = 0;
$("#surveyContainer").Survey({ model: survey });
function prepareSurveyPDF() {
const surveyPDF = new SurveyPDF.SurveyPDF(JSON.parse(surveyResultQuestionResult.jsonDefinition));
surveyPDF.data = survey.data;
surveyPDF.haveCommercialLicense = true;
return surveyPDF;
}
function savePdfAsFile() {
const surveyPDF = prepareSurveyPDF();
surveyPDF.save("surveyAsFile.pdf");
}
survey
.navigationBar
.getActionById("sv-nav-complete")
.visible = false;
survey.addNavigationItem({ id: "survey_save_as_file", title: "Save as PDF", action: savePdfAsFile });
});
also I am try it at you website and it's not working also using this link
https://surveyjs.io/form-library/examples/survey-localization/jquery
with lang ar