public function __construct($pdf, $sz = null, $w = null, $h = null)
{
$this->fillColor = new \Pop\Color\Space\Rgb(0, 0, 0);
$this->backgroundColor = new \Pop\Color\Space\Rgb(255, 255, 255);
parent::__construct($pdf);
$this->objects[1] = new Object\Root();
$this->objects[2] = new Object\ParentObject();
$this->objects[3] = new Object\Info();
// If the PDF file already exists, import it.
if ($this->size != 0) {
$this->import($this->fullpath);
}
// If page parameters were passed, add a new page.
if (null !== $sz || null !== $w && null !== $h) {
$this->addPage($sz, $w, $h);
}
}