src/Pdf.php
public function addPage($input, $options = array(), $type = null)
    {
        $options['inputArg'] = $this->ensureUrlOrFile($input, $type);
        $this->_objects[] = $this->ensureUrlOrFileOptions($options);
        return $this;
    }
public function addPage($input, $options = array(), $type = null)
    {
        $options['inputArg'] = $this->ensureUrlOrFile($input, $type);
        $this->_objects[] = $this->ensureUrlOrFileOptions($options);
        return $this;
    }
Add a page object to the output

@param string $input either a URL, a HTML string or a filename
@param array $options optional options for this page
@param string|null $type a type hint if the input is a string of known
type. This can either be `TYPE_HTML` or `TYPE_XML`. If `null` (default)
the type is auto detected from the string content.
@return static the Pdf instance for method chaining