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

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

PDF String type objects Superclass for simple objects that are basically stringlike (Number, Name, etc.) Inherits from PDF::Builder::Basic::PDF::Objind

## NAME

PDF::Builder::Basic::PDF::String - PDF String type objects

Superclass for simple objects that are basically stringlike (Number, Name, etc.)

Inherits from PDF::Builder::Basic::PDF::Objind

## METHODS

### from\_pdf

```
    PDF::Builder::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.

### new

```
    PDF::Builder::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.

### convert

```
    $s->convert($str)
```

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

### val

```
    $s->val()
```

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

### as\_pdf

```
    $s->as_pdf()
```

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

### outobjdeep

```
    $s->outobjdeep($fh, $pdf)
```

Outputs the string in PDF format, complete with necessary conversions.
