protected function getScript($html, $heigth)
{
if (empty($html)) {
return '';
}
$script = ' height: "' . $heigth . '",';
$script .= ' contents: phantom.callback(function(numPage, totalPages) {';
$script .= ' return "' . $html . '";"';
$script .= '"})';
return $script;
}