Text::PDF::String(3) User Contributed Perl Documentation Text::PDF::String(3)

# [NAME](#NAME)

Text::PDF::String - PDF String type objects and superclass for simple objects that are basically stringlike (Number, Name, etc.)

# [METHODS](#METHODS)

## [Text::PDF::String-&gt;from\_pdf($string)](#Text::PDF::String)

Creates a new string object (not a full object yet) from a given string. The string is parsed according to input criteria with escaping working.

## [Text::PDF::String-&gt;new($string)](#Text::PDF::String~2)

Creates a new string object (not a full object yet) from a given string. The string is parsed according to input criteria with escaping working.

## [$s-&gt;convert($str)](#$s)

Returns $str converted as per criteria for input from PDF file

## [$s-&gt;val](#$s~2)

Returns the value of this string (the string itself).

## [$-&gt;as\_pdf](#$)

Returns the string formatted for output as PDF for PDF File object $pdf.

## [$s-&gt;outobjdeep](#$s~3)

Outputs the string in PDF format, complete with necessary conversions

## $s-&gt;copy($inpdf, $res, $unique, $outpdf, %opts)

Copies an object. See **Text::PDF::Objind::Copy()** for details

2026-10-03 perl v5.44.0

---

Document: Text::PDF::String(3pm) from perl-text-pdf 0.31-r0 (Chainguard OS)
