From: Jeremias Maerki Date: Tue, 26 Oct 2010 12:48:55 +0000 (+0000) Subject: Added two more character to be escaped in a PDF name (now in sync with PDFBox). X-Git-Tag: fop-1_1rc1old~420 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2f1dbe772277b645632ec3f86aa73a0f0bfdac9;p=xmlgraphics-fop.git 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 --- 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.