Smalot\PdfParser\Page::getXObject PHP Method

getXObject() public method

public getXObject ( string $id ) : Smalot\PdfParser\Object
$id string
return Smalot\PdfParser\Object
    public function getXObject($id)
    {
        $xobjects = $this->getXObjects();
        if (isset($xobjects[$id])) {
            return $xobjects[$id];
        } else {
            return null;
            /*$id = preg_replace('/[^0-9\.\-_]/', '', $id);
            
                        if (isset($xobjects[$id])) {
                            return $xobjects[$id];
                        } else {
                            return null;
                        }*/
        }
    }