
PDF::API2::Resource::XObject::Form

Returns a form-resource object. base class for all types of form-xobjects.
Returns a form resource object. This method is different from 'new' that it needs an PDF::API2-object rather than a Text::PDF::File-object.
Adds a resource to the form.
Example:
$res->resource('Font',$fontkey,$fontobj);
$res->resource('XObject',$imagekey,$imageobj);
$res->resource('Shading',$shadekey,$shadeobj);
$res->resource('ColorSpace',$spacekey,$speceobj);
Note: You only have to add the required resources, if they are NOT handled by the *font*, *image*, *shade* or *space* methods.

alfred reibenschuh