public byte[] createPDFData(){
  try {
    if (m_layout == null)     layout();
    return Document.getPDFAsArray(m_layout.getPageable(false));
  }
 catch (  Exception e) {
    log.log(Level.SEVERE,"PDF",e);
  }
  return null;
}

public byte [ ] createPDFData ( ) { try { if ( m_layout == null ) layout ( ) ; return Document . getPDFAsArray ( m_layout . getPageable ( false ) ) ; } catch ( Exception e ) { log . log ( Level . SEVERE , "PDF" , e ) ; } return null ; }
create pdf as data array
