src/MyPdf.php
public function cloneFontFrom(&$pdf)
    {
        $this->n                = &$pdf->getN();
        $this->fonts            = &$pdf->getFonts();
        $this->FontFiles        = &$pdf->getFontFiles();
        $this->diffs            = &$pdf->getDiffs();
        $this->fontlist         = &$pdf->getFontList();
        $this->numfonts         = &$pdf->getNumFonts();
        $this->fontkeys         = &$pdf->getFontKeys();
        $this->font_obj_ids     = &$pdf->getFontObjIds();
        $this->annotation_fonts = &$pdf->getAnnotFonts();
    }
public function cloneFontFrom(&$pdf)
    {
        $this->n                = &$pdf->getN();
        $this->fonts            = &$pdf->getFonts();
        $this->FontFiles        = &$pdf->getFontFiles();
        $this->diffs            = &$pdf->getDiffs();
        $this->fontlist         = &$pdf->getFontList();
        $this->numfonts         = &$pdf->getNumFonts();
        $this->fontkeys         = &$pdf->getFontKeys();
        $this->font_obj_ids     = &$pdf->getFontObjIds();
        $this->annotation_fonts = &$pdf->getAnnotFonts();
    }
public function cloneFontFrom ( & $ pdf ) { $ this -> n = & $ pdf -> getN ( ) ; $ this -> fonts = & $ pdf -> getFonts ( ) ; $ this -> FontFiles = & $ pdf -> getFontFiles ( ) ; $ this -> diffs = & $ pdf -> getDiffs ( ) ; $ this -> fontlist = & $ pdf -> getFontList ( ) ; $ this -> numfonts = & $ pdf -> getNumFonts ( ) ; $ this -> fontkeys = & $ pdf -> getFontKeys ( ) ; $ this -> font_obj_ids = & $ pdf -> getFontObjIds ( ) ; $ this -> annotation_fonts = & $ pdf -> getAnnotFonts ( ) ; }
after cloning a object, we does not want to clone all the front informations
because it take a lot a time and a lot of memory => we use reference

@param myPdf &$pdf
@access public
after cloning a object we does not want to clone all the front informations because it take a lot a time and a lot of memory = > we use reference