diff options
author | Jeremias Maerki <jeremias@apache.org> | 2003-03-27 10:44:41 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2003-03-27 10:44:41 +0000 |
commit | 9413ba3fbda4d02b61f6e854d1bf09de195dd3ab (patch) | |
tree | d0ed6e26de1a0bece13ea671e36fe6f15759cf73 /src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java | |
parent | 29290e1b26ffdf806624cdc4b39a9996f6c57116 (diff) | |
download | xmlgraphics-fop-9413ba3fbda4d02b61f6e854d1bf09de195dd3ab.tar.gz xmlgraphics-fop-9413ba3fbda4d02b61f6e854d1bf09de195dd3ab.zip |
The PDF object number doesn't get passed to the constructor anymore. Adjust for that.
Use the toPDFString() (returns String) method instead of toPDF() (returns byte[]) where appropriate. String to byte[] conversion is done in PDFObject in a well-defined location instead of scattered around the codebase.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196159 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java b/src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java index f5037b62f..c8fd2d303 100644 --- a/src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java +++ b/src/java/org/apache/fop/pdf/PDFCIDSystemInfo.java @@ -77,31 +77,19 @@ public class PDFCIDSystemInfo extends PDFObject { } /** - * produce the PDF representation for the object. - * - * unlike the other objects, the CIDSystemInfo is written directly inside - * the referencing object - * - * @return the PDF - */ - public byte[] toPDF() { - return toPDFString().getBytes(); - } - - /** * Create a string for the CIDSystemInfo dictionary. * The entries are placed as an inline dictionary. * * @return the string for the CIDSystemInfo entry with the inline dictionary */ public String toPDFString() { - StringBuffer p = new StringBuffer(); + StringBuffer p = new StringBuffer(64); p.setLength(0); p.append("/CIDSystemInfo << /Registry ("); p.append(registry); - p.append(")/Ordering ("); + p.append(") /Ordering ("); p.append(ordering); - p.append(")/Supplement "); + p.append(") /Supplement "); p.append(supplement); p.append(" >>"); return p.toString(); |