Exemplo n.º 1
0
  protected int writePdf(PdfWriter w, boolean spacing) throws IOException {

    DataOutputStream dos = w.getDataOutputStream();

    int count = 2; // for [ and ]

    dos.write('[');

    boolean first = true;
    for (Iterator p = _a.iterator(); p.hasNext(); ) {
      PdfObject obj = (PdfObject) p.next();
      if (first) {
        count += obj.writePdf(w, false);
        first = false;
      } else {
        count += obj.writePdf(w, true);
      }
    }

    dos.write(']');

    return count;
  }