DOKK / manpages / debian 12 / libpdf-builder-perl / PDF::Builder::Basic::PDF::Array.3pm.en
PDF::Builder::Basic::PDF::Array(3pm) User Contributed Perl Documentation PDF::Builder::Basic::PDF::Array(3pm)

PDF::Builder::Basic::PDF::Array - Corresponds to a PDF array. Inherits from PDF::Builder::Basic::PDF::Objind

Creates an array with the given storage parent and an optional list of values to initialise the array with.
$a->outobjdeep($fh, $pdf)
Outputs an array as a PDF array to the given filehandle.
$a->elements()
Returns the contents of the array.

Formerly called "elementsof", which is now deprecated.

$a->add_elements(@elements)
Appends the given elements to the array. An element is only added if it is defined.
$a->remove_element($element)
Removes all occurrences of an element from an array.

Formerly called "removeobj", which is now deprecated and will be removed.

$a->val()
Returns a reference to the contents of the array.
$a->copy($pdf)
Copies the array with deep-copy on elements which are not full PDF objects with respect to a particular $pdf output context.
2023-01-24 perl v5.36.0