Here is the dompdf rendering of my SO profile page....
https://docs.google.com/file/d/0B-I8istAg8Z6UmJDVHEtUkZOUDQ/edit
here's the code
<?php
require_once("dompdf/dompdf_config.inc.php");
$html = file_get_contents('http://stackoverflow.com/users/1461078/samidh-t');
$base_path = 'http://'.$_SERVER['HTTP_HOST'] ;
$dompdf = new DOMPDF();
if ( isset($base_path) ) {
$dompdf->set_base_path($base_path);
}
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream('file.pdf' , array("Attachment" => 0));
?>
the rendering is not even close to the profile page.
What can be done to improve this rendering ?