We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to implement in my CI App and got this message any help would be appreciate it Thank You in advance.
No block-level parent found. Not good.
public function pdf() { //error_reporting(E_ALL^E_NOTICE^E_WARNING); try { //ob_start(); $html = $this->layout->view('reports/campaign', ['campaign_id'=>56], true); //$html = ob_get_clean(); //die($html); $this->html2pdf->folder('./tmp/'); $this->html2pdf->filename(uniqid().'.pdf'); $this->html2pdf->paper('letter', 'landscape'); $this->html2pdf->html($html); $this->html2pdf->create('save'); } catch (\Exception $e) { echo $e->getMessage(); } }
The text was updated successfully, but these errors were encountered:
i found out that if u remove the newline in the html, it kinda solve this issue.
Sorry, something went wrong.
No branches or pull requests
I try to implement in my CI App and got this message any help would be appreciate it
Thank You in advance.
No block-level parent found. Not good.
public function pdf() {
//error_reporting(E_ALL^E_NOTICE^E_WARNING);
try {
//ob_start();
$html = $this->layout->view('reports/campaign', ['campaign_id'=>56], true);
//$html = ob_get_clean(); //die($html);
$this->html2pdf->folder('./tmp/');
$this->html2pdf->filename(uniqid().'.pdf');
$this->html2pdf->paper('letter', 'landscape');
$this->html2pdf->html($html);
$this->html2pdf->create('save');
} catch (\Exception $e) {
echo $e->getMessage();
}
}
The text was updated successfully, but these errors were encountered: