Giter Club home page Giter Club logo

Comments (7)

gologames avatar gologames commented on May 27, 2024

Hello,

Unfortunately, there is some constraints in HTML to PDF export in SurveyPDF. We will check the information which you had provided and write back to this thread

Thanks, Alex
SurveyJS Team

from survey-pdf.

gologames avatar gologames commented on May 27, 2024

Hello,

We implemented ability to use custom fonts in HTML to PDF image render. It will available with next minor update

Set useCustomFontInHtml: true option to enable this feature (it can slows exporting time). We'll update our HTML to PDF article and write back to this thread

PDF exported with default Segoe UI font (text question and two HTML questions):
image

Thanks, Alex
SurveyJS Team

from survey-pdf.

joshcampbell191 avatar joshcampbell191 commented on May 27, 2024

Thanks for the update Alex. I'm happy to see that you were able to get this working. Are you aware if anything can be done with regards to the standard render? This would help preserve the overall accessibility of the generated PDF.

Worse case, I assume we can replace the HTML bricks with text bricks?

from survey-pdf.

gologames avatar gologames commented on May 27, 2024

Hello,

We added Use custom font in HTML section to our HTML to PDF article. It will be available on site soon

Unfortunately, there is no support of using custom fonts in html for standard render at this moment (we use fromHtml method of jsPDF MIT library for this and it's difficult to modify it). But yes, you'll able replace html questions to comment questions for example. Please look at this issue for more details

Thanks, Alex
SurveyJS Team

from survey-pdf.

tsv2013 avatar tsv2013 commented on May 27, 2024

I've implemented custom fonts (including utf-8) support via the above commit . This functionality will be available in the nearest update.

from survey-pdf.

joshcampbell191 avatar joshcampbell191 commented on May 27, 2024

That's great news! I look forward to trying out this new functionality.

from survey-pdf.

gologames avatar gologames commented on May 27, 2024

This functionality will be available with next minor update. You can track our releases here

from survey-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.