Archive for the ‘Random Coding’ Category

Page Break Issue in IE

Friday, June 1st, 2007

Just found a useful hack for IE 7 when dealing with page-breaks and I thought it might be useful to someone so here it it. The following page-break code worked fine in IE 6, but broke in IE 7: <p style=”page-break-before: always”></p> I found a post on a forum that said try putting this= <!–[if IE 7]><br style=”height:0; line-height:0″> in after the page-break code to fix it for IE 7. So the ending result was <p style=”page-break-before: always”><!–[if IE 7]><br style=”height:0; line-height:0″><![endif]–></p> which works in both IE 6 & IE 7

html 2 pdf with dompdf

Thursday, April 5th, 2007

I just finished getting dompdf setup and working to convert html docs from Lotus Domino into usuable pdfs. I did run along a few roadblocks along the way though. First off though, I’d like to say that installing and setting it up was a piece of cake. All it required was putting the files on the php server and changing a few parameters in the config. Then I call the script from a url such as
/dompdf/dompdf.php?input_file=test1.html
where the input file is the html that needs to become a pdf. One snag that held me up for a little while was that I was getting a fatal error like this:
Call to a member function get_cellmap() on a non-object table_cell_frame_reflower.cls.php
This was caused by poorly constructed html and after cleaning up the html a little, it processed the file correctly. It appears to mostly support the CSS 2.1 standard and as long as the formatting of the html is in good shape you should have no problems.

Heres a link to the project so Rich Waters is happy. sourceforge.net/projects/dompdf/


Close
E-mail It
Socialized through Gregarious 39