]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added two more character to be escaped in a PDF name (now in sync with PDFBox).
authorJeremias Maerki <jeremias@apache.org>
Tue, 26 Oct 2010 12:48:55 +0000 (12:48 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 26 Oct 2010 12:48:55 +0000 (12:48 +0000)
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

index 419907429255b2083a90a470d085fba31bddf68a..3f9af76695c0b3f98b162a3f327ee584d5c5d575 100644 (file)
@@ -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.