3

I am trying to create pdf from table html with style by referring this post.

But I got this error in jspdf.debug.js.

Error: Unable to look up font label for font 'times ', 'bold'. Refer to getFontList() for available fonts.

I tried different font names and styles.

Community
  • 1
  • 1
Jkrish
  • 159
  • 2
  • 16
  • What do you get from `getFontList()`? Do you have any Times-like fonts at all? – Rup Apr 17 '15 at 16:20
  • @Rup. Yes. times font exist. – Jkrish Apr 20 '15 at 06:44
  • OK - can you try using a string that's exactly the same as one you get back from getFontList? You can see from your error message it has problems cutting the spaces in the right place, so try with a font that's a single word e.g. Arial if that's in the list. And just to be safe get the casing right - you've got lower-case 'T' in your error which the font won't be. – Rup Apr 20 '15 at 08:39
  • @Rup I tried several fonts including arial with lower case and upper case. This error always rise. – Jkrish Apr 20 '15 at 09:32

0 Answers0