# phpman > man > PDF::API2::Basic::PDF::String

## NAME
    [PDF::API2::Basic::PDF::String](https://www.chedong.com/phpMan.php/perldoc/PDF%3A%3AAPI2%3A%3ABasic%3A%3APDF%3A%3AString/markdown) - Low-level PDF string object

## METHODS
  [PDF::API2::Basic::PDF::String](https://www.chedong.com/phpMan.php/perldoc/PDF%3A%3AAPI2%3A%3ABasic%3A%3APDF%3A%3AString/markdown)->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](https://www.chedong.com/phpMan.php/perldoc/PDF%3A%3AAPI2%3A%3ABasic%3A%3APDF%3A%3AString/markdown)->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

