code: public static PdfPTable shallowCopy(PdfPTable table) {
          PdfPTable nt = new PdfPTable();
          nt.copyFormat(table);
          return nt;
      }
docs: Makes a shallow copy of a table (format without content).
  
  @param table
  @return a shallow copy of the table