diff options
Diffstat (limited to 'src/org/apache/fop/pdf/PDFFont.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFFont.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/pdf/PDFFont.java b/src/org/apache/fop/pdf/PDFFont.java index a1226bb19..9b11c5f02 100644 --- a/src/org/apache/fop/pdf/PDFFont.java +++ b/src/org/apache/fop/pdf/PDFFont.java @@ -209,7 +209,7 @@ public class PDFFont extends PDFObject { * * @return the PDF */ - public String toPDF() { + public byte[] toPDF() { StringBuffer p = new StringBuffer(); p.append(this.number + " " + this.generation + " obj\n<< /Type /Font\n/Subtype /" + TYPE_NAMES[this.subtype] @@ -226,7 +226,7 @@ public class PDFFont extends PDFObject { } fillInPDF(p); p.append(" >>\nendobj\n"); - return p.toString(); + return p.toString().getBytes(); } /** |