/**
  * Return XObjects Dictionary.
  *
  * Overwritten to add additional XObjects to the resources dictionary of TCPDF
  *
  * @return string
  */
 protected function _getxobjectdict()
 {
     $out = parent::_getxobjectdict();
     foreach ($this->_tpls as $tplIdx => $tpl) {
         $out .= sprintf('%s%d %d 0 R', $this->tplPrefix, $tplIdx, $tpl['n']);
     }
     return $out;
 }
 function _getxobjectdict()
 {
     $out = parent::_getxobjectdict();
     if (count($this->tpls)) {
         foreach ($this->tpls as $tplidx => $tpl) {
             $out .= sprintf('%s%d %d 0 R', $this->tplprefix, $tplidx, $tpl['n']);
         }
     }
     return $out;
 }