@@ 557-568 (lines=12) @@ | ||
554 | $this->PageLinks[$this->page][] = array($x*$this->k, $this->hPt-$y*$this->k, $w*$this->k, $h*$this->k, $link); |
|
555 | } |
|
556 | ||
557 | function Text($x, $y, $txt) |
|
558 | { |
|
559 | // Output a string |
|
560 | if(!isset($this->CurrentFont)) |
|
561 | $this->Error('No font has been set'); |
|
562 | $s = sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); |
|
563 | if($this->underline && $txt!='') |
|
564 | $s .= ' '.$this->_dounderline($x,$y,$txt); |
|
565 | if($this->ColorFlag) |
|
566 | $s = 'q '.$this->TextColor.' '.$s.' Q'; |
|
567 | $this->_out($s); |
|
568 | } |
|
569 | ||
570 | function AcceptPageBreak() |
|
571 | { |
@@ 70-79 (lines=10) @@ | ||
67 | } |
|
68 | } |
|
69 | ||
70 | function Text($x,$y,$txt) |
|
71 | { |
|
72 | //Output a string |
|
73 | $s=sprintf('BT %.2f %.2f Td %s Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escapetext($txt)); |
|
74 | if($this->underline and $txt!='') |
|
75 | $s.=' '.$this->_dounderline($x,$y,$this->GetStringWidth($txt),$txt); |
|
76 | if($this->ColorFlag) |
|
77 | $s='q '.$this->TextColor.' '.$s.' Q'; |
|
78 | $this->_out($s); |
|
79 | } |
|
80 | ||
81 | function AcceptPageBreak() |
|
82 | { |