protected void newline(){
  if (page != null && pagenum >= prFirst) {
    page.drawString(line,x0,y0 + (linenum * lineheight) + lineascent);
  }
  line="";
  charnum=0;
  charoffset=0;
  linenum++;
  if (linenum >= lines_per_page) {
    if (isPreview) {
      pageImages.addElement(previewImage);
    }
    if (page != null) {
      page.dispose();
    }
    page=null;
    newpage();
  }
}

protected void newline ( ) { if ( page != null && pagenum >= prFirst ) { page . drawString ( line , x0 , y0 + ( linenum * lineheight ) + lineascent ) ; } line = "" ; charnum = 0 ; charoffset = 0 ; linenum ++ ; if ( linenum >= lines_per_page ) { if ( isPreview ) { pageImages . addElement ( previewImage ) ; } if ( page != null ) { page . dispose ( ) ; } page = null ; newpage ( ) ; } }
internal method begins a new line method modified by dennis miller to add preview capability
