function __construct()
 {
     global $msg, $charset, $pmb_pdf_font;
     global $acquisition_pdfrel_orient_page, $acquisition_pdfrel_text_size, $acquisition_pdfrel_format_page, $acquisition_pdfrel_marges_page;
     global $acquisition_pdfrel_pos_logo, $acquisition_pdfrel_pos_raison, $acquisition_pdfrel_pos_date, $acquisition_pdfrel_pos_adr_fac;
     global $acquisition_pdfrel_pos_adr_liv, $acquisition_pdfrel_pos_adr_fou, $acquisition_pdfrel_pos_num, $acquisition_pdfrel_text_before;
     global $acquisition_pdfrel_text_after, $acquisition_pdfrel_tab_rel, $acquisition_pdfrel_pos_sign, $acquisition_pdfrel_text_sign;
     global $acquisition_pdfrel_pos_footer, $acquisition_pdfrel_pos_titre, $acquisition_pdfrel_pos_num_cli;
     if ($acquisition_pdfrel_orient_page) {
         $this->orient_page = $acquisition_pdfrel_orient_page;
     }
     $format_page = explode('x', $acquisition_pdfrel_format_page);
     if ($format_page[0]) {
         $this->largeur_page = $format_page[0];
     }
     if ($format_page[1]) {
         $this->hauteur_page = $format_page[1];
     }
     $this->PDF = pdf_factory::make($this->orient_page, $this->unit, array($this->largeur_page, $this->hauteur_page));
     $marges_page = explode(',', $acquisition_pdfrel_marges_page);
     if ($marges_page[0]) {
         $this->marge_haut = $marges_page[0];
     }
     if ($marges_page[1]) {
         $this->marge_bas = $marges_page[1];
     }
     if ($marges_page[2]) {
         $this->marge_droite = $marges_page[2];
     }
     if ($marges_page[3]) {
         $this->marge_gauche = $marges_page[3];
     }
     $this->w = $this->largeur_page - $this->marge_gauche - $this->marge_droite;
     $this->font = $pmb_pdf_font;
     if ($acquisition_pdfrel_text_size) {
         $this->fs = $acquisition_pdfrel_text_size;
     }
     $pos_logo = explode(',', $acquisition_pdfrel_pos_logo);
     if ($pos_logo[0]) {
         $this->x_logo = $pos_logo[0];
     }
     if ($pos_logo[1]) {
         $this->y_logo = $pos_logo[1];
     }
     if ($pos_logo[2]) {
         $this->l_logo = $pos_logo[2];
     }
     if ($pos_logo[3]) {
         $this->h_logo = $pos_logo[3];
     }
     $pos_raison = explode(',', $acquisition_pdfrel_pos_raison);
     if ($pos_raison[0]) {
         $this->x_raison = $pos_raison[0];
     }
     if ($pos_raison[1]) {
         $this->y_raison = $pos_raison[1];
     }
     if ($pos_raison[2]) {
         $this->l_raison = $pos_raison[2];
     }
     if ($pos_raison[3]) {
         $this->h_raison = $pos_raison[3];
     }
     if ($pos_raison[4]) {
         $this->fs_raison = $pos_raison[4];
     }
     $pos_date = explode(',', $acquisition_pdfrel_pos_date);
     if ($pos_date[0]) {
         $this->x_date = $pos_date[0];
     }
     if ($pos_date[1]) {
         $this->y_date = $pos_date[1];
     }
     if ($pos_date[2]) {
         $this->l_date = $pos_date[2];
     }
     if ($pos_date[3]) {
         $this->h_date = $pos_date[3];
     }
     if ($pos_date[4]) {
         $this->fs_date = $pos_date[4];
     }
     $this->sep_ville_date = $msg['acquisition_act_sep_ville_date'];
     $pos_adr_rel = explode(',', $acquisition_pdfrel_pos_adr_rel);
     if ($pos_adr_rel[0]) {
         $this->x_adr_rel = $pos_adr_rel[0];
     }
     if ($pos_adr_rel[1]) {
         $this->y_adr_rel = $pos_adr_rel[1];
     }
     if ($pos_adr_rel[2]) {
         $this->l_adr_rel = $pos_adr_rel[2];
     }
     if ($pos_adr_rel[3]) {
         $this->h_adr_rel = $pos_adr_rel[3];
     }
     if ($pos_adr_rel[4]) {
         $this->fs_adr_rel = $pos_adr_rel[4];
     }
     $this->text_adr_tel = $msg['acquisition_tel'] . ".";
     $this->text_adr_fax = $msg['acquisition_fax'] . ".";
     $this->text_adr_email = $msg['acquisition_mail'] . " :";
     $pos_adr_fou = explode(',', $acquisition_pdfrel_pos_adr_fou);
     if ($pos_adr_fou[0]) {
         $this->x_adr_fou = $pos_adr_fou[0];
     }
     if ($pos_adr_fou[1]) {
         $this->y_adr_fou = $pos_adr_fou[1];
     }
     if ($pos_adr_fou[2]) {
         $this->l_adr_fou = $pos_adr_fou[2];
     }
     if ($pos_adr_fou[3]) {
         $this->h_adr_fou = $pos_adr_fou[3];
     }
     if ($pos_adr_fou[4]) {
         $this->fs_adr_fou = $pos_adr_fou[4];
     }
     $pos_titre = explode(',', $acquisition_pdfrel_pos_titre);
     if ($pos_titre[0]) {
         $this->x_titre = $pos_titre[0];
     }
     if ($pos_titre[1]) {
         $this->y_titre = $pos_titre[1];
     }
     if ($pos_titre[2]) {
         $this->l_titre = $pos_titre[2];
     }
     if ($pos_titre[3]) {
         $this->h_titre = $pos_titre[3];
     }
     if ($pos_titre[4]) {
         $this->fs_titre = $pos_titre[4];
     }
     $this->text_titre = $msg['acquisition_recept_lettre_titre'];
     $pos_num = explode(',', $acquisition_pdfrel_pos_num);
     if ($pos_num[0]) {
         $this->x_num = $pos_num[0];
     }
     if ($pos_num[2]) {
         $this->l_num = $pos_num[1];
     }
     if ($pos_num[3]) {
         $this->h_num = $pos_num[2];
     }
     if ($pos_num[4]) {
         $this->fs_num = $pos_num[3];
     }
     $this->text_num = $msg['acquisition_act_num_cde'];
     $this->text_ech = $msg['acquisition_recept_lettre_ech'];
     $pos_num_cli = explode(',', $acquisition_pdfrel_pos_num_cli);
     if ($pos_num_cli[0]) {
         $this->x_num_cli = $pos_num_cli[0];
     }
     if ($pos_num_cli[0]) {
         $this->x_num_cli = $pos_num_cli[0];
     }
     if ($pos_num_cli[2]) {
         $this->l_num_cli = $pos_num_cli[1];
     }
     if ($pos_num_cli[3]) {
         $this->h_num_cli = $pos_num_cli[2];
     }
     if ($pos_num_cli[4]) {
         $this->fs_num_cli = $pos_num_cli[3];
     }
     $this->text_num_cli = $msg['acquisition_num_cp_client'];
     $this->text_before = $acquisition_pdfrel_text_before;
     $this->text_after = $acquisition_pdfrel_text_after;
     $pos_tab = explode(',', $acquisition_pdfrel_tab_rel);
     if ($pos_tab[0]) {
         $this->h_tab = $pos_tab[0];
     }
     if ($pos_tab[1]) {
         $this->fs_tab = $pos_tab[1];
     }
     $this->x_tab = $this->marge_gauche;
     $this->y_tab = $this->marge_haut;
     $pos_sign = explode(',', $acquisition_pdfrel_pos_sign);
     if ($pos_sign[0]) {
         $this->x_sign = $pos_sign[0];
     }
     if ($pos_sign[1]) {
         $this->l_sign = $pos_sign[1];
     }
     if ($pos_sign[2]) {
         $this->h_sign = $pos_sign[2];
     }
     if ($pos_sign[3]) {
         $this->fs_sign = $pos_sign[3];
     }
     if ($acquisition_pdfrel_text_sign) {
         $this->text_sign = $acquisition_pdfrel_text_sign;
     } else {
         $this->text_sign = $msg['acquisition_act_sign'];
     }
     $pos_footer = explode(',', $acquisition_pdfrel_pos_footer);
     if ($pos_footer[0]) {
         $this->PDF->y_footer = $pos_footer[0];
     } else {
         $this->PDF->y_footer = $this->y_footer;
     }
     if ($pos_footer[1]) {
         $this->PDF->fs_footer = $pos_footer[1];
     } else {
         $this->PDF->fs_footer = $this->fs_footer;
     }
     $this->x_col1 = $this->x_tab;
     $this->w_col1 = round($this->w * 20 / 100);
     $this->txt_header_col1 = $msg['acquisition_act_tab_typ'] . "\n" . $msg['acquisition_act_tab_code'];
     $this->x_col2 = $this->x_col1 + $this->w_col1;
     $this->w_col2 = round($this->w * 50 / 100);
     $this->txt_header_col2 = $msg['acquisition_act_tab_lib'];
     $this->x_col3 = $this->x_col2 + $this->w_col2;
     $this->w_col3 = round($this->w * 10 / 100);
     $this->txt_header_col3 = $msg['acquisition_qte_cde'];
     $this->x_col4 = $this->x_col3 + $this->w_col3;
     $this->w_col4 = round($this->w * 10 / 100);
     $this->txt_header_col4 = $msg['acquisition_qte_liv'];
     $this->x_col5 = $this->x_col4 + $this->w_col4;
     $this->w_col5 = round($this->w * 10 / 100);
     $this->txt_header_col5 = $msg['acquisition_act_tab_sol'];
     $this->PDF->Open();
     $this->PDF->SetMargins($this->marge_gauche, $this->marge_haut, $this->marge_droite);
     $this->PDF->setFont($this->font);
     $this->h_header = $this->h_tab * max($this->PDF->NbLines($this->w_col1, $this->txt_header_col1), $this->PDF->NbLines($this->w_col2, $this->txt_header_col2), $this->PDF->NbLines($this->w_col3, $this->txt_header_col3), $this->PDF->NbLines($this->w_col4, $this->txt_header_col4), $this->PDF->NbLines($this->w_col5, $this->txt_header_col5));
     $this->p_header = false;
     $this->PDF->footer_type = 2;
     $this->PDF->msg_footer = $msg['acquisition_act_page'];
 }
Example #2
0
 function __construct()
 {
     global $msg, $charset, $pmb_pdf_font;
     global $acquisition_pdfdev_orient_page, $acquisition_pdfdev_text_size, $acquisition_pdfdev_format_page, $acquisition_pdfdev_marges_page;
     global $acquisition_pdfdev_pos_logo, $acquisition_pdfdev_pos_raison, $acquisition_pdfdev_pos_date, $acquisition_pdfdev_pos_adr_fac;
     global $acquisition_pdfdev_pos_adr_liv, $acquisition_pdfdev_pos_adr_fou, $acquisition_pdfdev_pos_num, $acquisition_pdfdev_text_before;
     global $acquisition_pdfdev_text_after, $acquisition_pdfdev_tab_dev, $acquisition_pdfdev_pos_sign, $acquisition_pdfdev_text_sign;
     global $acquisition_pdfdev_pos_footer;
     global $acquisition_gestion_tva;
     if ($acquisition_pdfdev_orient_page) {
         $this->orient_page = $acquisition_pdfdev_orient_page;
     }
     $format_page = explode('x', $acquisition_pdfdev_format_page);
     if ($format_page[0]) {
         $this->largeur_page = $format_page[0];
     }
     if ($format_page[1]) {
         $this->hauteur_page = $format_page[1];
     }
     $this->PDF = pdf_factory::make($this->orient_page, $this->unit, array($this->largeur_page, $this->hauteur_page));
     $marges_page = explode(',', $acquisition_pdfdev_marges_page);
     if ($marges_page[0]) {
         $this->marge_haut = $marges_page[0];
     }
     if ($marges_page[1]) {
         $this->marge_bas = $marges_page[1];
     }
     if ($marges_page[2]) {
         $this->marge_droite = $marges_page[2];
     }
     if ($marges_page[3]) {
         $this->marge_gauche = $marges_page[3];
     }
     $this->w = $this->largeur_page - $this->marge_gauche - $this->marge_droite;
     $this->font = $pmb_pdf_font;
     if ($acquisition_pdfdev_text_size) {
         $this->fs = $acquisition_pdfdev_text_size;
     }
     $pos_logo = explode(',', $acquisition_pdfdev_pos_logo);
     if ($pos_logo[0]) {
         $this->x_logo = $pos_logo[0];
     }
     if ($pos_logo[1]) {
         $this->y_logo = $pos_logo[1];
     }
     if ($pos_logo[2]) {
         $this->l_logo = $pos_logo[2];
     }
     if ($pos_logo[3]) {
         $this->h_logo = $pos_logo[3];
     }
     $pos_raison = explode(',', $acquisition_pdfdev_pos_raison);
     if ($pos_raison[0]) {
         $this->x_raison = $pos_raison[0];
     }
     if ($pos_raison[1]) {
         $this->y_raison = $pos_raison[1];
     }
     if ($pos_raison[2]) {
         $this->l_raison = $pos_raison[2];
     }
     if ($pos_raison[3]) {
         $this->h_raison = $pos_raison[3];
     }
     if ($pos_raison[4]) {
         $this->fs_raison = $pos_raison[4];
     }
     $pos_date = explode(',', $acquisition_pdfdev_pos_date);
     if ($pos_date[0]) {
         $this->x_date = $pos_date[0];
     }
     if ($pos_date[1]) {
         $this->y_date = $pos_date[1];
     }
     if ($pos_date[2]) {
         $this->l_date = $pos_date[2];
     }
     if ($pos_date[3]) {
         $this->h_date = $pos_date[3];
     }
     if ($pos_date[4]) {
         $this->fs_date = $pos_date[4];
     }
     $this->sep_ville_date = $msg['acquisition_act_sep_ville_date'];
     $pos_adr_fac = explode(',', $acquisition_pdfdev_pos_adr_fac);
     if ($pos_adr_fac[0]) {
         $this->x_adr_fac = $pos_adr_fac[0];
     }
     if ($pos_adr_fac[1]) {
         $this->y_adr_fac = $pos_adr_fac[1];
     }
     if ($pos_adr_fac[2]) {
         $this->l_adr_fac = $pos_adr_fac[2];
     }
     if ($pos_adr_fac[3]) {
         $this->h_adr_fac = $pos_adr_fac[3];
     }
     if ($pos_adr_fac[4]) {
         $this->fs_adr_fac = $pos_adr_fac[4];
     }
     $this->text_adr_fac = $msg['acquisition_adr_fac'] . " :";
     $this->text_adr_fac_tel = $msg['acquisition_tel'] . ".";
     $this->text_adr_fac_tel2 = $msg['acquisition_tel2'] . ".";
     $this->text_adr_fac_fax = $msg['acquisition_fax'] . ".";
     $this->text_adr_fac_email = $msg['acquisition_mail'] . " :";
     $pos_adr_liv = explode(',', $acquisition_pdfdev_pos_adr_liv);
     if ($pos_adr_liv[0]) {
         $this->x_adr_liv = $pos_adr_liv[0];
     }
     if ($pos_adr_liv[1]) {
         $this->y_adr_liv = $pos_adr_liv[1];
     }
     if ($pos_adr_liv[2]) {
         $this->l_adr_liv = $pos_adr_liv[2];
     }
     if ($pos_adr_liv[3]) {
         $this->h_adr_liv = $pos_adr_liv[3];
     }
     if ($pos_adr_liv[4]) {
         $this->fs_adr_liv = $pos_adr_liv[4];
     }
     $this->text_adr_liv = $msg['acquisition_adr_liv'] . " :";
     $this->text_adr_liv_tel = $msg['acquisition_tel'] . ".";
     $this->text_adr_liv_tel2 = $msg['acquisition_tel2'] . ".";
     $this->text_adr_liv_email = $msg['acquisition_mail'] . " :";
     $pos_adr_fou = explode(',', $acquisition_pdfdev_pos_adr_fou);
     if ($pos_adr_fou[0]) {
         $this->x_adr_fou = $pos_adr_fou[0];
     }
     if ($pos_adr_fou[1]) {
         $this->y_adr_fou = $pos_adr_fou[1];
     }
     if ($pos_adr_fou[2]) {
         $this->l_adr_fou = $pos_adr_fou[2];
     }
     if ($pos_adr_fou[3]) {
         $this->h_adr_fou = $pos_adr_fou[3];
     }
     if ($pos_adr_fou[4]) {
         $this->fs_adr_fou = $pos_adr_fou[4];
     }
     $this->text_adr_fou = $msg['acquisition_act_formule'];
     $pos_num = explode(',', $acquisition_pdfdev_pos_num);
     if ($pos_num[0]) {
         $this->x_num = $pos_num[0];
     }
     if ($pos_num[1]) {
         $this->y_num = $pos_num[1];
     }
     if ($pos_num[2]) {
         $this->l_num = $pos_num[2];
     }
     if ($pos_num[3]) {
         $this->h_num = $pos_num[3];
     }
     if ($pos_num[4]) {
         $this->fs_num = $pos_num[4];
     }
     $this->text_num = $msg['acquisition_act_num_dev'];
     $this->text_before = $acquisition_pdfdev_text_before;
     $this->text_after = $acquisition_pdfdev_text_after;
     $pos_tab = explode(',', $acquisition_pdfdev_tab_dev);
     if ($pos_tab[0]) {
         $this->h_tab = $pos_tab[0];
     }
     if ($pos_tab[1]) {
         $this->fs_tab = $pos_tab[1];
     }
     $this->x_tab = $this->marge_gauche;
     $this->y_tab = $this->marge_haut;
     $pos_sign = explode(',', $acquisition_pdfdev_pos_sign);
     if ($pos_sign[0]) {
         $this->x_sign = $pos_sign[0];
     }
     if ($pos_sign[1]) {
         $this->l_sign = $pos_sign[1];
     }
     if ($pos_sign[2]) {
         $this->h_sign = $pos_sign[2];
     }
     if ($pos_sign[3]) {
         $this->fs_sign = $pos_sign[3];
     }
     if ($acquisition_pdfdev_text_sign) {
         $this->text_sign = $acquisition_pdfdev_text_sign;
     } else {
         $this->text_sign = $msg['acquisition_act_sign'];
     }
     $pos_footer = explode(',', $acquisition_pdfdev_pos_footer);
     if ($pos_footer[0]) {
         $this->PDF->y_footer = $pos_footer[0];
     } else {
         $this->PDF->y_footer = $this->y_footer;
     }
     if ($pos_footer[1]) {
         $this->PDF->fs_footer = $pos_footer[1];
     } else {
         $this->PDF->fs_footer = $this->fs_footer;
     }
     $this->PDF->Open();
     $this->PDF->SetMargins($this->marge_gauche, $this->marge_haut, $this->marge_droite);
     $this->PDF->setFont($this->font);
     $this->PDF->footer_type = 1;
     $this->PDF->msg_footer = $msg['acquisition_act_page'];
 }
 function __construct()
 {
     global $msg, $charset, $pmb_pdf_font;
     global $acquisition_pdfcde_orient_page, $acquisition_pdfcde_text_size, $acquisition_pdfcde_format_page, $acquisition_pdfcde_marges_page;
     global $acquisition_pdfcde_pos_logo, $acquisition_pdfcde_pos_raison, $acquisition_pdfcde_pos_date, $acquisition_pdfcde_pos_adr_fac;
     global $acquisition_pdfcde_pos_adr_liv, $acquisition_pdfcde_pos_adr_fou, $acquisition_pdfcde_pos_num, $acquisition_pdfcde_text_before;
     global $acquisition_pdfcde_text_after, $acquisition_pdfcde_tab_cde, $acquisition_pdfcde_pos_tot, $acquisition_pdfcde_pos_sign, $acquisition_pdfcde_text_sign;
     global $acquisition_pdfcde_pos_footer, $acquisition_pdfcde_pos_titre, $acquisition_pdfcde_pos_num_cli;
     global $acquisition_gestion_tva;
     if ($acquisition_pdfcde_orient_page) {
         $this->orient_page = $acquisition_pdfcde_orient_page;
     }
     $format_page = explode('x', $acquisition_pdfcde_format_page);
     if ($format_page[0]) {
         $this->largeur_page = $format_page[0];
     }
     if ($format_page[1]) {
         $this->hauteur_page = $format_page[1];
     }
     $this->PDF = pdf_factory::make($this->orient_page, $this->unit, array($this->largeur_page, $this->hauteur_page));
     $marges_page = explode(',', $acquisition_pdfcde_marges_page);
     if ($marges_page[0]) {
         $this->marge_haut = $marges_page[0];
     }
     if ($marges_page[1]) {
         $this->marge_bas = $marges_page[1];
     }
     if ($marges_page[2]) {
         $this->marge_droite = $marges_page[2];
     }
     if ($marges_page[3]) {
         $this->marge_gauche = $marges_page[3];
     }
     $this->w = $this->largeur_page - $this->marge_gauche - $this->marge_droite;
     $this->font = $pmb_pdf_font;
     if ($acquisition_pdfcde_text_size) {
         $this->fs = $acquisition_pdfcde_text_size;
     }
     $pos_logo = explode(',', $acquisition_pdfcde_pos_logo);
     if ($pos_logo[0]) {
         $this->x_logo = $pos_logo[0];
     }
     if ($pos_logo[1]) {
         $this->y_logo = $pos_logo[1];
     }
     if ($pos_logo[2]) {
         $this->l_logo = $pos_logo[2];
     }
     if ($pos_logo[3]) {
         $this->h_logo = $pos_logo[3];
     }
     $pos_raison = explode(',', $acquisition_pdfcde_pos_raison);
     if ($pos_raison[0]) {
         $this->x_raison = $pos_raison[0];
     }
     if ($pos_raison[1]) {
         $this->y_raison = $pos_raison[1];
     }
     if ($pos_raison[2]) {
         $this->l_raison = $pos_raison[2];
     }
     if ($pos_raison[3]) {
         $this->h_raison = $pos_raison[3];
     }
     if ($pos_raison[4]) {
         $this->fs_raison = $pos_raison[4];
     }
     $pos_date = explode(',', $acquisition_pdfcde_pos_date);
     if ($pos_date[0]) {
         $this->x_date = $pos_date[0];
     }
     if ($pos_date[1]) {
         $this->y_date = $pos_date[1];
     }
     if ($pos_date[2]) {
         $this->l_date = $pos_date[2];
     }
     if ($pos_date[3]) {
         $this->h_date = $pos_date[3];
     }
     if ($pos_date[4]) {
         $this->fs_date = $pos_date[4];
     }
     $this->sep_ville_date = $msg['acquisition_act_sep_ville_date'];
     $pos_adr_fac = explode(',', $acquisition_pdfcde_pos_adr_fac);
     if ($pos_adr_fac[0]) {
         $this->x_adr_fac = $pos_adr_fac[0];
     }
     if ($pos_adr_fac[1]) {
         $this->y_adr_fac = $pos_adr_fac[1];
     }
     if ($pos_adr_fac[2]) {
         $this->l_adr_fac = $pos_adr_fac[2];
     }
     if ($pos_adr_fac[3]) {
         $this->h_adr_fac = $pos_adr_fac[3];
     }
     if ($pos_adr_fac[4]) {
         $this->fs_adr_fac = $pos_adr_fac[4];
     }
     $this->text_adr_fac = $msg['acquisition_adr_fac'] . " :";
     $this->text_adr_fac_tel = $msg['acquisition_tel'] . ".";
     $this->text_adr_fac_tel2 = $msg['acquisition_tel2'] . ".";
     $this->text_adr_fac_fax = $msg['acquisition_fax'] . ".";
     $this->text_adr_fac_email = $msg['acquisition_mail'] . " :";
     $pos_adr_liv = explode(',', $acquisition_pdfcde_pos_adr_liv);
     if ($pos_adr_liv[0]) {
         $this->x_adr_liv = $pos_adr_liv[0];
     }
     if ($pos_adr_liv[1]) {
         $this->y_adr_liv = $pos_adr_liv[1];
     }
     if ($pos_adr_liv[2]) {
         $this->l_adr_liv = $pos_adr_liv[2];
     }
     if ($pos_adr_liv[3]) {
         $this->h_adr_liv = $pos_adr_liv[3];
     }
     if ($pos_adr_liv[4]) {
         $this->fs_adr_liv = $pos_adr_liv[4];
     }
     $this->text_adr_liv = $msg['acquisition_adr_liv'] . " :";
     $this->text_adr_liv_tel = $msg['acquisition_tel'] . ".";
     $this->text_adr_liv_tel2 = $msg['acquisition_tel2'] . ".";
     $this->text_adr_liv_email = $msg['acquisition_mail'] . " :";
     $pos_adr_fou = explode(',', $acquisition_pdfcde_pos_adr_fou);
     if ($pos_adr_fou[0]) {
         $this->x_adr_fou = $pos_adr_fou[0];
     }
     if ($pos_adr_fou[1]) {
         $this->y_adr_fou = $pos_adr_fou[1];
     }
     if ($pos_adr_fou[2]) {
         $this->l_adr_fou = $pos_adr_fou[2];
     }
     if ($pos_adr_fou[3]) {
         $this->h_adr_fou = $pos_adr_fou[3];
     }
     if ($pos_adr_fou[4]) {
         $this->fs_adr_fou = $pos_adr_fou[4];
     }
     $pos_titre = explode(',', $acquisition_pdfcde_pos_titre);
     if ($pos_titre[0]) {
         $this->x_titre = $pos_titre[0];
     }
     if ($pos_titre[1]) {
         $this->y_titre = $pos_titre[1];
     }
     if ($pos_titre[2]) {
         $this->l_titre = $pos_titre[2];
     }
     if ($pos_titre[3]) {
         $this->h_titre = $pos_titre[3];
     }
     if ($pos_titre[4]) {
         $this->fs_titre = $pos_titre[4];
     }
     $this->text_titre = $msg['acquisition_recept_lettre_titre'];
     $pos_num = explode(',', $acquisition_pdfcde_pos_num);
     if ($pos_num[0]) {
         $this->x_num = $pos_num[0];
     }
     if ($pos_num[1]) {
         $this->y_num = $pos_num[1];
     }
     if ($pos_num[2]) {
         $this->l_num = $pos_num[2];
     }
     if ($pos_num[3]) {
         $this->h_num = $pos_num[3];
     }
     if ($pos_num[4]) {
         $this->fs_num = $pos_num[4];
     }
     $this->text_num = $msg['acquisition_act_num_cde'];
     $this->text_num_cli = $msg['acquisition_num_cp_client'];
     $this->text_ref = $msg['acquisition_cde_ref_dev'];
     $this->text_before = $acquisition_pdfcde_text_before;
     $this->text_after = $acquisition_pdfcde_text_after;
     $pos_tab = explode(',', $acquisition_pdfcde_tab_cde);
     if ($pos_tab[0]) {
         $this->h_tab = $pos_tab[0];
     }
     if ($pos_tab[1]) {
         $this->fs_tab = $pos_tab[1];
     }
     $this->x_tab = $this->marge_gauche;
     $this->y_tab = $this->marge_haut;
     $pos_tot = explode(',', $acquisition_pdfcde_pos_tot);
     if ($pos_tot[0]) {
         $this->x_tot = $pos_tot[0];
     }
     if ($pos_tot[1]) {
         $this->l_tot = $pos_tot[1];
     }
     if ($pos_tot[2]) {
         $this->h_tot = $pos_tot[2];
     }
     if ($pos_tot[3]) {
         $this->fs_tot = $pos_tot[3];
     }
     $pos_sign = explode(',', $acquisition_pdfcde_pos_sign);
     if ($pos_sign[0]) {
         $this->x_sign = $pos_sign[0];
     }
     if ($pos_sign[1]) {
         $this->l_sign = $pos_sign[1];
     }
     if ($pos_sign[2]) {
         $this->h_sign = $pos_sign[2];
     }
     if ($pos_sign[3]) {
         $this->fs_sign = $pos_sign[3];
     }
     if ($acquisition_pdfcde_text_sign) {
         $this->text_sign = $acquisition_pdfcde_text_sign;
     } else {
         $this->text_sign = $msg['acquisition_act_sign'];
     }
     $pos_footer = explode(',', $acquisition_pdfcde_pos_footer);
     if ($pos_footer[0]) {
         $this->PDF->y_footer = $pos_footer[0];
     } else {
         $this->PDF->y_footer = $this->y_footer;
     }
     if ($pos_footer[1]) {
         $this->PDF->fs_footer = $pos_footer[1];
     } else {
         $this->PDF->fs_footer = $this->fs_footer;
     }
     $this->x_col1 = $this->x_tab;
     $this->w_col1 = round($this->w * 20 / 100);
     $this->txt_header_col1 = $msg['acquisition_act_tab_typ'] . "\n" . $msg['acquisition_act_tab_code'];
     $this->x_col2 = $this->x_col1 + $this->w_col1;
     $this->w_col2 = round($this->w * 40 / 100);
     $this->txt_header_col2 = $msg['acquisition_act_tab_lib'];
     $this->x_col3 = $this->x_col2 + $this->w_col2;
     $this->w_col3 = round($this->w * 10 / 100);
     $this->txt_header_col3 = $msg['acquisition_act_tab_qte'];
     $this->x_col4 = $this->x_col3 + $this->w_col3;
     $this->w_col4 = round($this->w * 10 / 100);
     switch ($acquisition_gestion_tva) {
         case '1':
             $this->txt_header_col4 = $msg['acquisition_act_tab_priht'] . "\n" . $msg['acquisition_tva'] . "\n" . $msg['acquisition_rem'];
             break;
         case '2':
             $this->txt_header_col4 = $msg['acquisition_act_tab_prittc'] . "\n" . $msg['acquisition_tva'] . "\n" . $msg['acquisition_rem'];
             break;
         default:
             $this->txt_header_col4 = " " . $msg['acquisition_act_tab_prittc'] . "\n" . $msg['acquisition_rem'];
             break;
     }
     $this->x_col5 = $this->x_col4 + $this->w_col4;
     $this->w_col5 = round($this->w * 20 / 100);
     $this->txt_header_col5 = $msg['acquisition_act_tab_dateliv'];
     $this->PDF->Open();
     $this->PDF->SetMargins($this->marge_gauche, $this->marge_haut, $this->marge_droite);
     $this->PDF->setFont($this->font);
     $this->h_header = $this->h_tab * max($this->PDF->NbLines($this->w_col1, $this->txt_header_col1), $this->PDF->NbLines($this->w_col2, $this->txt_header_col2), $this->PDF->NbLines($this->w_col3, $this->txt_header_col3), $this->PDF->NbLines($this->w_col4, $this->txt_header_col4), $this->PDF->NbLines($this->w_col5, $this->txt_header_col5));
     $this->p_header = false;
     $this->PDF->footer_type = 1;
     $this->PDF->msg_footer = $msg['acquisition_act_page'];
 }