CAM::P...::Dump(3pm)

πŸ“¦
version 1.60 Β· 2 versions
  • 1.60 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.60 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… CAM::P...::Dump(3pm) β€” the CAM::PDF::Renderer::Dump manual, bestie edition πŸŽ€

okay so you found the CAM::PDF::Renderer::Dump page in the User Contributed Perl Documentation, and honestly? it's a little baby manpage and it's iconic for it. let's go πŸ’–


✨ NAME ✨

CAM::PDF::Renderer::Dump</p> β€” it prints the graphic state of each node. that's the whole vibe. it dumps. it renders. it tells you what's where. periodt πŸ’…


πŸ“œ LICENSE πŸ“œ

See CAM::PDF. (that's it. that's the license section. go look at the big one, bestie 🫢)


🌸 SYNOPSIS 🌸

the way you summon it:

use CAM::PDF;
my $pdf = CAM::PDF->new($filename);
my $contentTree = $pdf->getPageContentTree(4);
$contentTree->render("CAM::PDF::Renderer::Dump");

no cap, that's literally the whole ritual ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so this class exists to print the coordinates of each node of a page layout straight to STDOUT. it's giving coordinate reveal party πŸŽ‰

it was written for two reasons, and both of them slay:

  • debugging β€” when you need to see what the heck is going on in a page layout
  • being a minimal example β€” it's a whole renderer, but baby-sized, so you can copy the vibe 🍼

πŸ‘‘ FUNCTIONS πŸ‘‘

$self->renderText($string)

prints the string, prefixed by its device and user coordinates. so you get the coords, then the text. coords first, always. main character energy fr fr πŸ”₯


πŸ’œ AUTHOR πŸ’œ

See CAM::PDF. (they did that. we love them for it πŸ’–)


and that's the whole page!! this one came from perl v5.36.0, dated 2022-12-08, and it's filed under CAM::P...::Dump(3pm) in the User Contributed Perl Documentation. short king of a manpage. obsessed. bye bestie πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from