/**
  * Add a link to the pdf
  *
  * @param string $url The url to link to
  * @param float  $x   The x position of the link
  * @param float  $y   The y position of the link
  * @param float  $width   The width of the link
  * @param float  $height   The height of the link
  */
 function add_link($url, $x, $y, $width, $height)
 {
     $y = $this->y($y) - $height;
     if (strpos($url, '#') === 0) {
         // Local link
         $name = substr($url, 1);
         if ($name) {
             $this->_pdf->addInternalLink($name, $x, $y, $x + $width, $y + $height);
         }
     } else {
         $this->_pdf->addLink(rawurldecode($url), $x, $y, $x + $width, $y + $height);
     }
 }