]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use PDFDocument to encode from String to bytes.
authorJeremias Maerki <jeremias@apache.org>
Fri, 4 Jul 2003 20:09:25 +0000 (20:09 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 4 Jul 2003 20:09:25 +0000 (20:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196600 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/pdf/PDFWArray.java

index bfc23d7aee1f7664148a173e9ed8057a481807dc..93da4f009b82a655069c9d2c7f52d54f51513e18 100644 (file)
@@ -120,7 +120,7 @@ public class PDFWArray {
      * @return byte[] the PDF code
      */
     public byte[] toPDF() {
-        return toPDFString().getBytes();
+        return PDFDocument.encode(toPDFString());
     }
 
     /**