Suggestion T5137
Visible to All Users

Add option to make SurveyPDF use the same fonts as in SurveyLibrary

created 4 years ago (modified 4 years ago)

[Ticket cloned from T5126: PDF Formatting]

I have experimented with you previous suggestion of using a different font, which has already made a big difference. ( not included in the plunker example.).
it would be nice to have a similar option as Survey.StylesManager.applyTheme("default") for surveytopdf to make surveypdf use the same fonts

Answers approved by surveyjs Support

created 4 years ago

Hello,

As you already mention here is described how to set custom font in SurveyPDF. We added Segoe UI font in source code of SurveyPDF as default font of exported PDF. It is same font as in default theme of SurveyLibrary. At the same time this font has about 1.8MB size in base64 encoded representation. If we will add more fonts then the size of SurveyPDF package will increase too much. This is reason why we provide ability to set custom fonts by customers themselves

Thanks, Alex
SurveyJS Team