php - How to send html tags to tcpdf methods as parameters -
i'm using profile_pdf library export resume once give parameters relevant methods. need styling exported cv , need pass html tags parameters. how can this?
method calling
$pdf->cell(0, 0, $personal_data["first_name"] . " " . $personal_data["last_name"], 0, false, 'l', 0, '', 0, false, 't', 'b');
method
public function cell($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 't', $valign = 'm') { $prev_cell_margin = $this->cell_margin; $prev_cell_padding = $this->cell_padding; $this->adjustcellpadding($border); if (!$ignore_min_height) { $min_cell_height = $this->getcellheight($this->fontsize); if ($h < $min_cell_height) { $h = $min_cell_height; } } $this->checkpagebreak($h + $this->cell_margin['t'] + $this->cell_margin['b']); // apply text shadow if enabled if ($this->txtshadow['enabled']) { // save data $x = $this->x; $y = $this->y; $bc = $this->bgcolor; $fc = $this->fgcolor; $sc = $this->strokecolor; $alpha = $this->alpha; // print shadow $this->x += $this->txtshadow['depth_w']; $this->y += $this->txtshadow['depth_h']; $this->setfillcolorarray($this->txtshadow['color']); $this->settextcolorarray($this->txtshadow['color']); $this->setdrawcolorarray($this->txtshadow['color']); if ($this->txtshadow['opacity'] != $alpha['ca']) { $this->setalpha($this->txtshadow['opacity'], $this->txtshadow['blend_mode']); } if ($this->state == 2) { $this->_out($this->getcellcode($w, $h, $txt, $border, $ln, $align, $fill, $link, $stretch, true, $calign, $valign)); } //restore data $this->x = $x; $this->y = $y; $this->setfillcolorarray($bc); $this->settextcolorarray($fc); $this->setdrawcolorarray($sc); if ($this->txtshadow['opacity'] != $alpha['ca']) { $this->setalpha($alpha['ca'], $alpha['bm'], $alpha['ca'], $alpha['ais']); } } if ($this->state == 2) { $this->_out($this->getcellcode($w, $h, $txt, $border, $ln, $align, $fill, $link, $stretch, true, $calign, $valign)); } $this->cell_padding = $prev_cell_padding; $this->cell_margin = $prev_cell_margin; }
Comments
Post a Comment