---
name: "PDF::API2::Basic::PDF::String"
section: "3pm"
platform: "linux"
package: "perl-pdf-api2"
version: "2.048-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PDF::API2::Basic::PDF::String"
---

# PDF::API2::Basic::PDF::String(3pm)

Low-level PDF string object

## NAME

PDF::API2::Basic::PDF::String - Low-level PDF string object

## METHODS

### PDF::API2::Basic::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.

### PDF::API2::Basic::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
