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
To install PDF::API2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDF::API2
CPAN shell
perl -MCPAN -e shell install PDF::API2
For more information on module installation, please visit the detailed CPAN module installation guide.