Welcome Guest, Not a member yet? Register   Sign In
DOMPDF CSS Problem
#1

[eluser]joshq[/eluser]
I have created a portfolio/resume website.

My controller for viewing my HTML resume is resume
A subpage is /resume/pdf that outputs the resume as a pdf file (diff css)

The pdf outputs, but lacks my stylesheets. I've been messing with the set_base_path but nothing seems to resolve it. I've used absolute url's and everything but it doesn't seem to work.

Anyone encounter this before and know how to fix it?
#2

[eluser]joshq[/eluser]
here's the controller function
function pdf()
{
require_once("/dompdf/dompdf_config.inc.php");

$this->_prepare_data($data);
$htmlout = $this->load->view('resumepdf',$data, TRUE);

$dompdf = new DOMPDF();
//$dompdf->set_base_path(???);
$dompdf->load_html($htmlout);
$dompdf->render();
$dompdf->stream("resume.pdf");
}
#3

[eluser]delia54321[/eluser]
me too!

PD: By the way, hello Alberto Fortes! Did you find the problem?
#4

[eluser]Unknown[/eluser]
Yes, i found my problem. You have to write css inline, like a newsletter.
#5

[eluser]delia54321[/eluser]
thanks!!!!

although i only have the problem on the production site, not in my local computer.... In local it works fine....

bye!




Theme © iAndrew 2016 - Forum software by © MyBB