PDF::AP...::BdFont(3)

πŸ’– PDF::AP...::BdFont(3) πŸ’–

okay bestie, welcome to the manual page for PDF::API2::Resource::Font::BdFont β€” yes that's the whole name, don't @ me, it's a Perl module thing ✨


✨ NAME ✨

PDF::API2::Resource::Font::BdFont β€” bestie it's literally the Module for using bitmapped Fonts. that's it. that's the job. πŸŽ€


🌸 SYNOPSIS 🌸

like, here's the whole vibe, no notes:

#
use PDF::API2;
#
$pdf = PDF::API2->new;
$sft = $pdf->bdfont($file);
#

see how easy that was?? iconic. πŸ’…


πŸ¦‹ METHODS πŸ¦‹

  • $font = PDF::API2::Resource::Font::BdFont->new $pdf, $font, %options β€” ok so this one hands you back a BmpFont object. that's the whole flex. 🫢

Valid %options are, and listen closely bc this is the whole menu:

  • -encode β€” this one changes the encoding of the font away from its default. wanna know which values are allowed? go look at perl's Encode, it has the receipts. πŸ“œ
  • -pdfname β€” this changes the reference-name of the font, from its default. and here's the tea: the reference-name is normally generated automatically, and you can grab it back later via $pdfname=$font->name. so it's not lost forever, bestie, it's just chillin' πŸ’œ

ngl this one's short but it's a whole mood. no cap, the whole module is: make bitmapped font object, tweak the encoding if u want, tweak the name if u want. periodt. πŸ‘‘

and that's the page!! this beauty ships as part of perl v5.42.0, dated 2025-09-01, under the PDF::AP...::BdFont(3) manual. go forth and render ur fonts, main character πŸ’–βœ¨πŸŒˆπŸŽ€

πŸ“¦ where this page comes from
  • fedora 43: perl-PDF-API2 2.048-1.fc43 Β· LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND (MIT OR Artistic-1.0-Perl)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms