static function getHtml($obj, $variables = null, $template = null) {
    Requirements::clear();
    
    if(!$template) {
      $template = sprintf("%s_pdf", $obj->ClassName);
    }

    $viewer = new SSViewer($template);
    $html = $viewer->process($obj, $variables);
    return $html;
  }