function readCSS(&$state)
 {
     parent::readCSS($state);
     // '-html2ps-link-target'
     global $g_config;
     if ($g_config["renderlinks"]) {
         $this->_readCSS($state, array(CSS_HTML2PS_LINK_TARGET));
     }
 }
 function offset($dx, $dy)
 {
     $size = count($this->_lines);
     for ($i = 0; $i < $size; $i++) {
         $this->_lines[$i]->offset($dx, $dy);
     }
     GenericInlineBox::offset($dx, $dy);
 }
 function offset($dx, $dy)
 {
     parent::offset($dx, $dy);
     $this->_note_call_box->offset($dx, $dy);
 }
예제 #4
0
 function show_fixed(&$viewport)
 {
     // Check if font-size have been set to 0; in this case we should not draw this box at all
     if ($this->font_size == 0) {
         return true;
     }
     // draw generic box
     parent::show($viewport);
     // Activate font
     if (is_null($viewport->setfont($this->_get_font_name($viewport), $this->encoding, $this->font_size))) {
         return null;
     }
     // draw text decoration
     $viewport->decoration($this->decoration['U'], $this->decoration['O'], $this->decoration['T']);
     // Output text with the selected font
     // note that we're using $default_baseline;
     // the alignment offset - the difference between baseline and default_baseline values
     // is taken into account inside the get_top/get_bottom functions
     //
     $viewport->show_xy($this->word, $this->get_left(), $this->get_top() - $this->default_baseline);
     return true;
 }