Je fais un tableau que je génère en PDF, comment dois-je faire pour changer son alignement?
Je voudrai qu'il soit un peu plus décalé vers le vas, car j'ai besoin de mettre des images en haut.
voilà comment je génère le tableau :
include("phpToPDF.php");
$PDF=new phpToPDF();
$PDF->AddPage();
$PDF->SetFont('Arial','B',16);
$id=$_GET['id'];
$connexion=mysql_Pconnect("127.0.0.1","root","");
if (!mysql_select_db("radiofrance",$connexion)) {
exit; }
// Définition des propriétés du tableau.
$proprietesTableau = array(
'TB_ALIGN' => 'L',
'L_MARGIN' => 10,
'BRD_COLOR' => array(255,255,255),
'BRD_SIZE' => '0',
);
// Définition des propriétés du header du tableau.
$proprieteHeader = array(
'T_COLOR' => array(150,10,10),
'T_SIZE' => 12,
'T_FONT' => 'Arial',
'T_ALIGN' => 'C',
'V_ALIGN' => 'T',
'T_TYPE' => 'B',
'LN_SIZE' => 7,
'BG_COLOR_COL0' => array(170, 240, 230),
'BG_COLOR' => array(170, 240, 230),
'BRD_COLOR' => array(170,240,230),
'BRD_SIZE' => 0.2,
'BRD_TYPE' => '1',
'BRD_TYPE_NEW_PAGE' => '',
);
// Contenu du header du tableau.
$contenuHeader = array(
35,48,38,48,
"Visualisation du duplex","COLSPAN2","","COLSPAN2",
);
// Définition des propriétés du reste du contenu du tableau.
$proprieteContenu = array(
'T_COLOR' => array(0,0,0),
'T_SIZE' => 10,
'T_FONT' => 'Arial',
'T_ALIGN_COL0' => 'L',
'T_ALIGN' => 'R',
'V_ALIGN' => 'M',
'T_TYPE' => '',
'LN_SIZE' => 6,
'BG_COLOR_COL0' => array(255, 255, 255),
'BG_COLOR' => array(255,255,255),
'BRD_COLOR' => array(255,255,255),
'BRD_SIZE' => 0.1,
'BRD_TYPE' => '1',
'BRD_TYPE_NEW_PAGE' => '',
);
// Contenu du tableau.
$contenuTableau = array(
"[B]N°d'Affaire", $numaf, "[B]Nom de l'émission",$nome,
"[B]Date de création", $date2, "[B]Date du duplex",$date1,
"[B]Heure de début", $heured, "[B]Heure de fin",$heuref,
"[B]Type de l'émission", $typee, "[B]Chaîne","xxx",
"[B]Commanditaire", $ncom, "[B]Tel. commanditaire",$tcom,
"[B]Invité 1", $n1, "[B]Tel invité",$t1,
"[B]Invité 2", $n2, "[B]Tel invité",$t2,
"[B]Qualité", $qualite, " "," ",
);
$PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau);
Quelqu'un sait ?