diff --git a/src/modules/utf8.js b/src/modules/utf8.js index c4e0138d8..f2c283285 100644 --- a/src/modules/utf8.js +++ b/src/modules/utf8.js @@ -146,7 +146,7 @@ out("/Type /Font"); out("/Subtype /Type0"); out("/ToUnicode " + cmap + " 0 R"); - out("/BaseFont /" + font.fontName); + out("/BaseFont /" + pdfEscapeWithNeededParanthesis(font.fontName)); out("/Encoding /" + font.encoding); out("/DescendantFonts [" + DescendantFont + " 0 R]"); out(">>");