PDF::API2::Resource::BaseFont(3pm)

PDF::API2::Resource::BaseFont3pm

Base class for font resources

Methods

$font = PDF::API2::Resource::BaseFont->new($pdf, $name)

Return a font resource object.

$descriptor = $font->descrByData()

Return the font's FontDescriptor key structure based on the font's data.

String methods

$utf8_string = $font->utfByStr($string)

Return the utf8-string from string based on the font's encoding map.

$string = $font->strByUtf($utf8_string)

Return the encoded string from utf8-string based on the font's encoding map.

$pdf_string = $font->textByStr($text)

Return a properly formatted representation of $text for use in the PDF.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

From perl-pdf-api2 2.048-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.