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
60 stars 29 forks source link

Wrong encoding while rendering html element to pdf #206

Closed folix-01 closed 1 year ago

folix-01 commented 1 year ago

Are you requesting a feature, reporting a bug or asking a question?

What is the current behavior?

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

}


#### Provide the test code and the tested page URL (if applicable)

-Sanbox fork here: https://codesandbox.io/s/exciting-feather-zqh1lz

Tested page URL:

https://codesandbox.io/s/exciting-feather-zqh1lz

Test code

your_code_here



### Specify your

* browser:
* browser version:
* surveyjs platform (angular or react or jquery or knockout or vue):
* surveyjs version:
folix-01 commented 1 year ago

@dk981234 Hello Dmitriy, I just want to be sure that this problem was seen by the dev team

JaneSjs commented 1 year ago

Hello @foxtrot-dfm1, The HTML content was rendered incorrectly because it included a single-quote which couldn't be rendered by a given font. I updated your HTML content and used the following single-quote character: '. Now, the HTML content looks as follows in PDF: image

The updated example is avaialble at https://codesandbox.io/s/condescending-dirac-8nkomk. surveyResultTest.pdf

Please let me know if you have any questions or require further assistnace.