|
@@ 3904-3920 (lines=17) @@
|
| 3901 |
|
* specify where the document should open when it first starts |
| 3902 |
|
* @access public |
| 3903 |
|
*/ |
| 3904 |
|
public function openHere($style, $a = 0, $b = 0, $c = 0) |
| 3905 |
|
{ |
| 3906 |
|
// this function will open the document at a specified page, in a specified style |
| 3907 |
|
// the values for style, and the required paramters are: |
| 3908 |
|
// 'XYZ' left, top, zoom |
| 3909 |
|
// 'Fit' |
| 3910 |
|
// 'FitH' top |
| 3911 |
|
// 'FitV' left |
| 3912 |
|
// 'FitR' left,bottom,right |
| 3913 |
|
// 'FitB' |
| 3914 |
|
// 'FitBH' top |
| 3915 |
|
// 'FitBV' left |
| 3916 |
|
$this->numObj++; |
| 3917 |
|
$this->o_destination($this->numObj, 'new', array('page'=>$this->currentPage,'type'=>$style,'p1'=>$a,'p2'=>$b,'p3'=>$c)); |
| 3918 |
|
$id = $this->catalogId; |
| 3919 |
|
$this->o_catalog($id, 'openHere', $this->numObj); |
| 3920 |
|
} |
| 3921 |
|
|
| 3922 |
|
/** |
| 3923 |
|
* create a labelled destination within the document |
|
@@ 3926-3936 (lines=11) @@
|
| 3923 |
|
* create a labelled destination within the document |
| 3924 |
|
* @access public |
| 3925 |
|
*/ |
| 3926 |
|
public function addDestination($label, $style, $a = 0, $b = 0, $c = 0) |
| 3927 |
|
{ |
| 3928 |
|
// associates the given label with the destination, it is done this way so that a destination can be specified after |
| 3929 |
|
// it has been linked to |
| 3930 |
|
// styles are the same as the 'openHere' function |
| 3931 |
|
$this->numObj++; |
| 3932 |
|
$this->o_destination($this->numObj, 'new', array('page'=>$this->currentPage,'type'=>$style,'p1'=>$a,'p2'=>$b,'p3'=>$c)); |
| 3933 |
|
$id = $this->numObj; |
| 3934 |
|
// store the label->idf relationship, note that this means that labels can be used only once |
| 3935 |
|
$this->destinations["$label"]=$id; |
| 3936 |
|
} |
| 3937 |
|
|
| 3938 |
|
/** |
| 3939 |
|
* define font families, this is used to initialize the font families for the default fonts |