Steve Simms > PDF-API2-2.020 > PDF::API2::Resource::XObject::Form

Download:
PDF-API2-2.020.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  7
View/Report Bugs
Module Version: 2.020   Source   Latest Release: PDF-API2-2.022

NAME ^

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

METHODS ^

$res = PDF::API2::Resource::XObject::Form->new $pdf

Returns a form-resource object. base class for all types of form-xobjects.

$res = PDF::API2::Resource::XObject::Form->new_api $api, $name

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.

($llx, $lly, $urx, $ury) = $res->bbox $llx, $lly, $urx, $ury
$res->resource $type, $key, $obj

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.

AUTHOR ^

alfred reibenschuh

syntax highlighting: