diff options
-rw-r--r-- | pdf/pdf_object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_object.c b/pdf/pdf_object.c index 7021fa5d..819607ce 100644 --- a/pdf/pdf_object.c +++ b/pdf/pdf_object.c @@ -1230,6 +1230,8 @@ static void fmt_str(struct fmt *fmt, pdf_obj *obj) fmt_puts(fmt, "\\("); else if (c == ')') fmt_puts(fmt, "\\)"); + else if (c == '\\') + fmt_puts(fmt, "\\\\"); else if (c < 32 || c >= 127) { char buf[16]; fmt_putc(fmt, '\\'); |