METHODS $resource = PDF::API2::Resource->new($pdf, $name) Returns a resource object. $name = $resource->name() $resource->name($name) Get or set the name of the resource.