/* Create a text object which will contain the same number as
   the barcode, but this time as plain text */
$bctext = new jh_pdf_text_jhpci(&$pdf);
$bctext->setalignment("center");
/* Create a container object and put in the three objects
   created above and some empty space between them */
$content = new jh_pdf_container_jhpci(&$pdf);
$content->addobject($day);
$content->addemptyspace(3);
$content->addobject($barcode);
$content->addemptyspace(3);
$content->addobject($bctext);
/* Make an instance of the table class */
$table = new jh_pdf_table(&$pdf, &$ypos, 30, 565, 30);
/* Set a function that will be called if a new page is necessary */
$table->setnewpagefunction(newpage);
/* Define the columns; note that all the columns have "*"
   as their width which means that the whole table width
   will be divided up and assigned equally to the columns */
$col1 =& $table->addcolumn("", "*", false, $content);
$col2 =& $table->addcolumn("", "*", false, $content);
$col3 =& $table->addcolumn("", "*", false, $content);
$col4 =& $table->addcolumn("", "*", false, $content);
/* Adjust some table parameters */
$table->settopborderwidth(0);
$table->setbottomborderwidth(0);
$table->setcolspacingwidth(50);
$table->setcolspacingcolor(false);
$table->setrowspacingwidth(10);
$table->setrowspacingcolor(false);
$table->setbgcolors(array(false));