Skip to content
New issue

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

No block-level parent found. Not good. #10

Open
alexfleites opened this issue Jun 6, 2019 · 1 comment
Open

No block-level parent found. Not good. #10

alexfleites opened this issue Jun 6, 2019 · 1 comment

Comments

@alexfleites
Copy link

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();
}
}

@lilsizzo
Copy link

lilsizzo commented Jul 9, 2019

i found out that if u remove the newline in the html, it kinda solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants