CAM::P...Images(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

✨ NAME ✨

CAM::PDF::Renderer::Images β€” bestie, this is the one that goes and finds all of the images in a page πŸ’– (also known as CAM::P...Images(3pm) if you're reading the man page header, iykyk)


πŸ’… LICENSE πŸ’…

See CAM::PDF. That's it, that's the whole thing, go look there 🫢


🌸 SYNOPSIS 🌸

Okay so here's the whole vibe, literally copy-paste this:

use CAM::PDF;
my $pdf = CAM::PDF->new($filename);
my $contentTree = $pdf->getPageContentTree(4);
my $gs = $contentTree->findImages();
my @imageNodes = @{$gs->{images}};

Like. Look at her go. Page 4's images? Found. Slay ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

This class is the class you use to identify every single image node in a page content tree. No cap. That's her whole job and she ate πŸ”₯


πŸŽ€ FUNCTIONS πŸŽ€

  • $self->new() β€” makes a brand new renderer for you, fresh out the box πŸ’–
  • $self->clone() β€” duplicates an instance. And listen, this is important: the new instance deliberately shares its "images" property with the original instance. Not a bug. On purpose. Periodt πŸ‘‘
  • $self->Do(DATA...) β€” records an indirect image node πŸ“
  • $self->BI(DATA...) β€” records an inline image node πŸ“

πŸ‘‘ AUTHOR πŸ‘‘

See CAM::PDF.


and that's the whole page bestie, no crumbs left 🌈

shoutout to perl v5.36.0 and the date 2022-12-08 β€” that's the version and timestamp on this bad boy, mwah πŸ’‹

πŸ“¦ where this page comes from