public function setGlobalOptions($options = null) {
    if(!$options) {
      $css = BASE_PATH . '/themes/' . SSViewer::current_theme() . '/css/pdf.css';
      $header = BASE_PATH . '/mysite/templates/Pdf/header.html';
      $footer = BASE_PATH . '/mysite/templates/Pdf/footer.html';

      $options = array(
        'no-outline',
        'enable-javascript',
        'enable-smart-shrinking',
        'encoding'          => 'UTF-8',
        'dpi'               => 150,
        'image-dpi'         => 150,
        'image-quality'     => 100,
        'user-style-sheet'  => $css,
        'orientation'       => 'Portrait',
        'page-height'       => '297mm',
        'page-width'        => '210mm',
        'page-size'         => 'A4',
        'margin-bottom'     => 30,
        'margin-left'       => 10,
        'margin-right'      => 10,
        'margin-top'        => 30,
        'header-html'       => $header,
        'footer-html'       => $footer,
        'binary'            => '/usr/local/bin/wkhtmltopdf'
      );
    }
    
    $this->globalOptions = $options;
    $this->pdf = new Pdf($this->globalOptions);
  }