Welcome Guest, Not a member yet? Register   Sign In
problem with using dompdf
#1

[eluser]Unknown[/eluser]
Hello,

I found "PDF generation using dompdf" in the wiki and though it would be very useful to my application.

I followed the instructions in the wiki...
renamed the folder the same,
put it in the same plugins directory,
created the plugin "to_pdf_pi.php" the same,

I did slightly change the controller...

Code:
function itinerys()
{
    $this->load->helper('file');
        
    $this->load->plugin('to_pdf');
    // page info here, db calls, etc.    
    $html = $this->load->view('home', $data=false, true);
    pdf_create($html, 'filename');
}

The problem come when i run it i get the following errors...

Code:
A PHP Error was encountered
Severity: Warning
Message: DOMXPath::query() [function.DOMXPath-query]: Invalid expression
Filename: include/stylesheet.cls.php
Line Number: 573

A PHP Error was encountered
Severity: Warning
Message: DOMXPath::query() [function.DOMXPath-query]: Invalid expression
Filename: include/stylesheet.cls.php
Line Number: 573

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: include/stylesheet.cls.php
Line Number: 575

Unable to stream pdf: headers already sent

I'm guessing the "Unable to stream pdf: headers already sent" come up because of the other errors but can anyone help me with the other error? I've search these forums but i can't find the same problem anywhere else.

Thanks very much

Durham


Messages In This Thread
problem with using dompdf - by El Forum - 03-07-2008, 11:09 AM
problem with using dompdf - by El Forum - 03-09-2008, 07:33 AM
problem with using dompdf - by El Forum - 03-12-2008, 10:49 PM
problem with using dompdf - by El Forum - 04-07-2008, 08:11 PM
problem with using dompdf - by El Forum - 07-23-2008, 02:37 PM
problem with using dompdf - by El Forum - 01-17-2009, 09:17 AM
problem with using dompdf - by El Forum - 02-10-2009, 07:40 PM
problem with using dompdf - by El Forum - 02-22-2010, 11:52 PM
problem with using dompdf - by El Forum - 02-26-2010, 09:35 AM
problem with using dompdf - by El Forum - 05-20-2010, 09:49 AM
problem with using dompdf - by El Forum - 05-20-2010, 03:20 PM
problem with using dompdf - by El Forum - 05-20-2010, 03:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB