Subclassed from PDF::API2::Content.
Returns a new text content object (called from $page->text).
Sets or gets the current text-object state.
Gets the current estimated text position.
Sets the matrix.
PLEASE NOTE: This method is not expected to be called by the user and else will 'die'. This was implemented to keep proper state in the text-object, so please use transform, transform_rel, translate, scale, skew or rotate instead.
Sets transformations (eg. translate, rotate, scale, skew) in pdf-canonical order, but relative to the previously set values.
Example:
$txt->transform_rel( -translate => [$x,$y], -rotate => $rot, -scale => [$sx,$sy], -skew => [$sa,$sb], ) |
takes an optional argument giving a custom leading between lines.
Returns the width of the string based on all currently set text-attributes.
Applys text to the content and optionally returns the width of the given text.
You can use the -utf8 option to give the text in utf8.
You can use the -utf8 option to give the text in utf8.
You can use the -utf8 option to give the text in utf8.
If -overflow is given, $overflow will contain any text, which wont fit into width without exessive scaling.
If -underflow is given, and $text is smaller than $width the text will be typeset using $txt->text.
if -less is given, text overflow will be calculated using minimal number of words.
You can use the -utf8 option to give the text in utf8.
The returned width is that of the typeset text.
You can use the -utf8 option to give the text in utf8.
$w ... witdth of the text on the last line. $y ... y-coord of the last line. $text ... any left-over text which did not fit into the paragraph |
alfred reibenschuh