1PDF::API2::Resource::XOUbsjeerctC:o:nFtorrimb(u3t)ed PerPlDFD:o:cAuPmIe2n:t:aRteisoonurce::XObject::Form(3)
2
3
4
6 PDF::API2::Resource::XObject::Form
7
9 $res = PDF::API2::Resource::XObject::Form->new $pdf
10 Returns a form-resource object. base class for all types of form-
11 xobjects.
12
13 $res = PDF::API2::Resource::XObject::Form->new_api $api, $name
14 Returns a form resource object. This method is different from 'new'
15 that it needs an PDF::API2-object rather than a
16 Text::PDF::File-object.
17
18 ($llx, $lly, $urx, $ury) = $res->bbox $llx, $lly, $urx, $ury
19 $res->resource $type, $key, $obj
20 Adds a resource to the form.
21
22 Example:
23
24 $res->resource('Font',$fontkey,$fontobj);
25 $res->resource('XObject',$imagekey,$imageobj);
26 $res->resource('Shading',$shadekey,$shadeobj);
27 $res->resource('ColorSpace',$spacekey,$speceobj);
28
29 Note: You only have to add the required resources, if they are NOT
30 handled by the *font*, *image*, *shade* or *space* methods.
31
33 alfred reibenschuh
34
35
36
37perl v5.12.2 2011-01-P2D4F::API2::Resource::XObject::Form(3)