for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PDFtk wrapper
*
* @copyright 2014-2019 Institute of Legal Medicine, Medical University of Innsbruck
* @author Martin Pircher <[email protected]>
* @author Andreas Erhard <[email protected]>
* @license LGPL-3.0-only
* @link http://www.gerichtsmedizin.at/
* @package pdftk
*/
namespace Gmi\Toolkit\Pdftk;
* Represents a single PDF bookmark.
class Bookmark
{
* Bookmark title, as displayed in the PDF viewer's bookmark list.
* @var string
private $title;
* Page where the bookmark is written.
* @var int
private $pageNumber;
* Bookmark level.
private $level = 1;
* Sets the bookmark title.
* @param string $title
* @return self
public function setTitle($title)
$this->title = $title;
return $this;
}
* Returns the bookmark title.
* @return string
public function getTitle()
return $this->title;
* Sets the bookmark page.
* @param int $pageNumber
public function setPageNumber($pageNumber)
$this->pageNumber = $pageNumber;
* Returns the bookmark page.
* @return int
public function getPageNumber()
return $this->pageNumber;
* Sets the bookmark level.
* @param int $level
public function setLevel($level)
$this->level = $level;
* Returns the bookmark level.
public function getLevel()
return $this->level;