---
name: "Text::PDF::String"
section: "3pm"
platform: "linux"
package: "libtext-pdf-perl"
version: "0.31-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Text::PDF::String"
---

# Text::PDF::String(3pm)

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

## NAME

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

## METHODS

### Text::PDF::String-\>from\_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-\>new($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.

### $s-\>convert($str)

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

### $s-\>val

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

### $-\>as\_pdf

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

### $s-\>outobjdeep

Outputs the string in PDF format, complete with necessary conversions

### $s-\>copy($inpdf, $res, $unique, $outpdf, %opts)

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