Name

addText( ) — add a new element to a document

Synopsis

$doc->addText( text=>$text,
                     font=>$font, 
                     size=>$size, 
                     leading=>$leading )

The addText( ) method performs just like the PostScript::TextBlock::addText( ) method described in the previous section. In fact, the Document simply calls the addText( ) method of its contentTextBlock. If the font , size ,or leading attributes are not provided, the default attributes for the TextBlock object are used.

Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.