public void AddTable(GOST table)
 {
     if (Tables.Count == 0)
     {
         Tables.Add(table);
         Format      = table.Format;
         Orientation = table.Orientation;
         Columns     = new List <int[]>(table.Columns);
         Rows        = new List <int[]>(table.Rows);
         SetPageDimensions();
     }
     else
     {
         if (table.Position > 1)
         {
             XMLTools.CompleteFields(table, Height, Width);
             XMLTools.CreateNormalTable(table, Height, Width);
         }
         Tables.Add(table);
         if (table.Columns != null && table.Rows != null)
         {
             (Columns, Rows) = XMLTools.MergeTables(Columns, Rows, table.Columns, table.Rows);
         }
     }
 }