Index: xml-fop/src/java/org/apache/fop/render/ps/ASCII85OutputStream.java
===================================================================
RCS file: /home/cvspublic/xml-fop/src/java/org/apache/fop/render/ps/ASCII85OutputStream.java,v
retrieving revision 1.1
diff -w -u -r1.1 ASCII85OutputStream.java
--- xml-fop/src/java/org/apache/fop/render/ps/ASCII85OutputStream.java	11 Mar 2003 13:05:22 -0000	1.1
+++ xml-fop/src/java/org/apache/fop/render/ps/ASCII85OutputStream.java	23 Apr 2003 18:19:18 -0000
@@ -121,13 +121,23 @@
 
 
     private void checkedWrite(byte[] buf) throws IOException {
-        checkedWrite(buf, buf.length);
+        checkedWrite(buf, buf.length, false);
+    }
+
+
+    private void checkedWrite(byte[] buf, boolean nosplit) throws IOException {
+        checkedWrite(buf, buf.length, nosplit);
     }
 
 
     private void checkedWrite(byte[] buf , int len) throws IOException {
+        checkedWrite(buf, len, false);
+    }
+
+
+    private void checkedWrite(byte[] buf , int len, boolean nosplit) throws IOException {
         if (posinline + len > 80) {
-            int firstpart = len - (posinline + len - 80);
+            int firstpart = (nosplit ? 0 : len - (posinline + len - 80));
             if (firstpart > 0) {
                 out.write(buf, 0, firstpart);
             }
@@ -234,7 +244,7 @@
             checkedWrite(conv, rest + 1);
         }
         // finally write the two character end of data marker
-        checkedWrite(EOD);
+        checkedWrite(EOD, true);
 
         flush();
         if (out instanceof Finalizable) {
