Welcome Guest, Not a member yet? Register   Sign In
dompdf errors
#1

[eluser]kishore[/eluser]
Hi All,

I am a new bie to dompdf,

And would appreciate any help with the problem I am facing.
Actually I am using a TINY-MCE editor for editing and the text generated by the editor is saved in the
the database at the same time I am generating the pdf using the dompdf plugin.
For certain cases it is generating pdf instantly and in some cases it is generating the below given errors.

Code:
Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame not found in cellmap' in /home/bobby/public_html/system/plugins/dompdf/include/cellmap.cls.php:262
Stack trace: #0 /home/bobby/public_html/system/plugins/dompdf/include/table_row_group_frame_reflower.cls.php(78):
Cellmap->get_frame_width(Object(Table_Row_Group_Frame_Decorator))
#1 /home/bobby/public_html/system/plugins/dompdf/include/frame_decorator.cls.php(387): Table_Row_Group_Frame_Reflower->reflow()
#2 /home/bobby/public_html/system/plugins/dompdf/include/table_frame_reflower.cls.php(468): Frame_Decorator->reflow()
#3 /home/bobby/public_html/system/plugins/dompdf/include/frame_decorator.cls.php(387): Table_Frame_Reflower->reflow()
#4 /home/bobby/public_html/system/plugins/dompdf/include/block_frame_reflower.cls.php(408): Frame_Decorator->reflow()
#5 /home/bobby/public_html/system/plugins/dompdf/include/frame_decorator.cls.php(387): Block_Frame_Reflower->reflow()
#6 /home/bobby/public_html/system/plugins/dompdf/include/page_frame_reflower.c in /home/bobby/public_html/system/plugins/dompdf/include/cellmap.cls.php  on line 262

I tried a lot to debug it but could not resolve it, Even the html is being generated correctly, I don't know where it is going wrong.

The following is the controller code which I am using and below that on is code for the to_pdf_pi file followed by the generated html code which needs to be converted into pdf.

Code:
$this->load->plugin('to_pdf_pi');                                       //loading the plug-in
                $data['id']    =       $recordID;
                $html = $this->load->view('path/to/thepdfview/ToPdf', $data, true);
              
                //echo $hmtl;die;
                          
                $flag    =       pdf_create($html,$file,FALSE);
var_dump($flag);

Code for the to_pdf_pi.php file

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function pdf_create($html, $filename)
{
        include_once BASEPATH.'plugins/dompdf/dompdf_config.inc.php';
        include_once BASEPATH.'plugins/convertcharset/ConvertCharset.class.php';
      
        $dompdf = new DOMPDF();
        $convertcharset = new ConvertCharset();
        $html = $convertcharset->Convert($html, 'utf-8', 'iso-8859-1');
        $dompdf->load_html($html);
        $dompdf->render();
        file_put_contents($filename, $dompdf->output());
        //$dompdf->stream($filename.".pdf", false); //commented to prevent instant pdf popup and save
                                                    //the file on server without downloading it.
}
?>

The generated html code is posted in the next post since, the space is not enough its a long html page.
so please don't mind and help me,

Thanks in Advance.
#2

[eluser]kishore[/eluser]
The Generated HTML code is as follows.

Code:
<html >
<head>
<style type="text/css">


.content
{
    font-family: sans-serif;
    width: 80%;
}
.lblname
{
    font-family: sans-serif;
    font-weight:bold;
    width: 20%;
}
</style>
</head>
<body>
            <table align="center" width="100%" cellpadding="0" cellspacing="0">
    
                <tr>
            <td class="lblname"><p>Name</td>
            <td class="content"></p>
<p><strong>Fred F. Hafezi, M.D., Incorporated</strong></p>

<p>Diplomate American Board of Orthopedic Surgery Certified Qualified  Medical Evaluator (Q.M.E.)</p>
<p>Agreed Medical Evaluator (A.M.E.) and Independent Medical Evaluator</p>
<p>P.O. Box 4238 Covina, CA. 91723</p>
<p>Tel: 626-915-4865&nbsp; Fax: 626-915-3405</p>
<p><strong>CURRICULUM VITAE</strong></p>
<p>1957 - 1963 <strong>University of Toronto</strong></p>
<p>Faculty of Medicine /Toronto, Canada</p>

<p>1963 <strong>Doctor of Medicine</strong></p>
<p>Toronto, Canada</p>
<p>1963 <strong>Doctor of Medicine</strong></p>
<p>Diplomate American Board of Medical Examiners</p>
<p>1963 -1964 <strong>Rotating Internship</strong></p>
<p>Toronto General Hospital/ Toronto, Canada</p>
<p>1964 -1965 <strong>General Surgery Residency</strong></p>

<p>Graduate Hospital University of Pennsylvania</p>
<p>Philadelphia, Pennsylvania</p>
<p>1965 <strong>Orthopedic Pathology</strong></p>
<p>Temple Hospital / Philadelphia, Pennsylvania</p>
<p>1966 -1967 <strong>Orthopedic Residency</strong></p>
<p>Henry Ford Hospital / Detroit, Michigan</p>
<p>1965 -1970 <strong>Orthopedic Residency</strong></p>

<p>St. Josephs Hospital/ Patterson New Jersey</p>
<p>1971 <strong>Original Article </strong></p>
<p>Journal of Clinical Orthopedic and Related Research. Volume 79</p>
<p>1972 <strong>Certified Orthopedic Surgeon</strong></p>
<p>American Board of Orthopedic Surgery</p>
<p>1972 <strong>Fellow ot the Royal College of Surgeons of Canada</strong></p>
<p>Orthopedics</p>

<p>1973 <strong>Honorary Member</strong></p>
<p>British Medical Society</p>
<p>1973 - Present <strong>Orthopedic Industrial Practice</strong>/ West    Covina, CA.</p>
<p>1985 - Present <strong>Active Member</strong>/ West German    Thermographic Association</p>
<p>1986 <strong>Guest Lecturer</strong></p>
<p>International Thermology Symposium/ Graz, Austria</p>

<p>1987 - Present <strong>Member</strong>; Academy of Neuromuscular    Thermographic Association</p>
<p>1988 - Present <strong>Member</strong>/ California Orthopedic    Association</p>
<p>1991 - Present <strong>Qualified Medical Examiner</strong></p>
<p>Q.M.E. Number 901903</p>
<p>1991 <strong>United States Patent</strong></p>
<p>Process for Diagnosing Spinal Conditions</p>

<p>United States Patent Number 5.056,525</p>
<p>1996 <strong>Original Article </strong></p>
<p>Telethermography Clinical Application for Definitive Diagnosis</p>
<p>of Soft Tissue Musculoskelatal Lesions/Indication and Protocol</p>
<p>The Journal of Neurological and Orthopedic Medicine and Surgery</p>
<p>Volume 16 Number 4</p>
<p>1998 <strong>Guest Lecturer</strong></p>
<p>European Federation of Scientific Image Medical and Forensic Image    Symposium/Bath, United Kingdom</p>

<p>1998 <strong>Guest Lecturer</strong></p>
<p>Palm Springs Stroke Activity Center Foundation and Desert Regional    Medical Center, Advances in Stroke Rehabilitation Nationally and    Internationally/ Palm Springs, CA.</p>
<p>1999 <strong>Thermography Certification</strong></p>
<p>A. U.H. Allegheny General Hospital, Certificate of Completion,    American Academy of Thermology, 28 Annual Meeting Fort Lauderdale,    Florida</p>
<p>2000 <strong>Guest Lecturer</strong></p>
<p>Annual Symposium of the American Chiropractic College of Infared    Imaging / San Jose,CA.</p>
<p>2001 <strong>American Academy of Thermology</strong></p>

<p>Guest Lecturer / Photonic Sympathetic Sensory Nerve Block Auburn    University / Auburn, Alabama</p>
<p>2002 <strong>Guest Lecturer</strong></p>
<p>American Academy of Thermology / Vero Beach, Florida</p>
<p>2003 <strong>Annual Meeting</strong></p>
<p>American Academy of Orthopedic Surgeons, SAn Francisco, CA.</p>
<p>2004 <strong>Certified of Attendance</strong></p>
<p>California Applicants Attorneys Association Costa Mesa California</p>

<p><strong>Certificate of CME Credit</strong></p>
<p>AMA Gudeline in Workers Compensation</p>
<p><strong>Annual Meeting</strong></p>
<p>Arthroscopy Association of North America Cincinnati, Ohio</p>
<p><strong>Annual Meeting</strong></p>
<p>American Academy of Orthopedic Surgery Washington D.C.</p>
<p>2006 <strong>Annual Meeting</strong></p>
<p>American Academy of Orthopedic Surgeons Rosemont, Ill.</p>

<p>2007 <strong>Annual Meeting</strong> American Academy of Orthopedic    Surgeons San Diego, CA.</p>
<p>2008 Present <strong>Qualified Medical Examiner/ Reappointment</strong> Q.M.E. Number 908281</p>
<p><strong>Certified of CME Credit</strong></p>
<p>AMA Guidelines in Workers Compensation</p>
<p>2009 <strong>California Applicants Attorneys Association</strong> Certification.</p></td>

        </tr>
                            
                
                
                        
                
                
                
                
                        
                
                                
            
        
                        
                </table>
        
    
    
&lt;/body&gt;
&lt;/html&gt;


Please help me with this, I have grown, half bald with this error.

I would greatly appreciate any help.

Thanks in Advance.




Theme © iAndrew 2016 - Forum software by © MyBB