From a2f1dbe772277b645632ec3f86aa73a0f0bfdac9 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 26 Oct 2010 12:48:55 +0000 Subject: [PATCH] Added two more character to be escaped in a PDF name (now in sync with PDFBox). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1027520 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/PDFName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/pdf/PDFName.java b/src/java/org/apache/fop/pdf/PDFName.java index 419907429..3f9af7669 100644 --- a/src/java/org/apache/fop/pdf/PDFName.java +++ b/src/java/org/apache/fop/pdf/PDFName.java @@ -41,7 +41,7 @@ public class PDFName extends PDFObject { this.name = escapeName(name); } - private static final String ESCAPED_NAME_CHARS = "/()<>[]"; + private static final String ESCAPED_NAME_CHARS = "/()<>[]%#"; /** * Escapes a PDF name. It adds the leading slash and escapes characters as necessary. -- 2.39.5