summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.go b/util.go
index 22e5f36..351d319 100644
--- a/util.go
+++ b/util.go
@@ -456,7 +456,7 @@ func isChinese(rune2 rune) bool {
// Condition font family string to PDF name compliance. See section 5.3 (Names)
// in https://resources.infosecinstitute.com/pdf-file-format-basic-structure/
func fontFamilyEscape(familyStr string) (escStr string) {
- escStr = strings.ReplaceAll(familyStr, " ", "#20")
+ escStr = strings.Replace(familyStr, " ", "#20", -1)
// Additional replacements can take place here
return
}