PDF::AP...tGState(3)

πŸ’– PDF::API2::Resource::ExtGState πŸ’–

okay bestie, so this is the manual page for PDF::API2::Resource::ExtGState, living in the User Contributed Perl Documentation corner of the world. it's all about graphics state dictionary support β€” yes, the ✨vibes✨ of your PDF's graphics state. let's get into it πŸ¦‹


✨ NAME ✨

PDF::API2::Resource::ExtGState β€” Graphics state dictionary support

like, that's literally the whole point. graphics state dictionary support. slay.


🌸 METHODS 🌸

$egs = PDF::API2::Resource::ExtGState->new @parameters

returns a brand new extgstate object πŸŽ€ (and heads up, this one gets called from $pdf->egstate).


🧚 the big roster of methods 🧚

here's the full squad, no cap, every single one of them:

$egs->strokeadjust $boolean
$egs->strokeoverprint $boolean
$egs->filloverprint $boolean
$egs->overprintmode $num
$egs->blackgeneration $obj
$egs->blackgeneration2 $obj
$egs->undercolorremoval $obj
$egs->undercolorremoval2 $obj
$egs->transfer $obj
$egs->transfer2 $obj
$egs->halftone $obj
$egs->halftonephase $obj
$egs->smoothness $num
$egs->font $font, $size
$egs->linewidth $size
$egs->linecap $cap
$egs->linejoin $join
$egs->miterlimit $limit
$egs->dash @dash
$egs->flatness $flat
$egs->renderingintent $intentName

that's the whole list, don't skip any of them, they're all important i promise πŸ’…


🫢 the ones with actual explanations 🫢

$egs->strokealpha $alpha

the current stroking alpha constant β€” which specifies the constant shape or constant opacity value to be used for stroking operations in the transparent imaging model. yes, that's a mouthful, but it's the exact definition and we respect it πŸ’œ

$egs->fillalpha $alpha

same as strokealpha, but for nonstroking operations. twin behaviour, different lane ✨

$egs->blendmode $blendname

$egs->blendmode $blendfunctionobj

the current blend mode to be used in the transparent imaging model. two ways in, pick your fighter 🌈

$egs->alphaisshape $boolean

the alpha source flag (alpha is shape), specifying whether the current soft mask and alpha constant are to be interpreted as shape values (true) or opacity values (false). it's giving toggle energy πŸ’…

$egs->textknockout $boolean

the text knockout flag, which determines the behavior of overlapping glyphs within a text object in the transparent imaging model. overlapping glyphs? in this economy?? 😭

$egs->transparency $t

the graphics transparency, with 0 being fully opaque and 1 being fully transparent. this is a convenience method setting proper values for strokealpha and fillalpha. one call, two setters, efficiency queen πŸ‘‘

$egs->opacity $op

the graphics opacity, with 1 being fully opaque and 0 being fully transparent. also a convenience method setting proper values for strokealpha and fillalpha. note the numbers are flipped from transparency β€” do not mix them up, i'm begging πŸ™ˆ


⭐ little reminder bestie: transparency goes 0 = opaque, 1 = transparent. opacity goes 1 = opaque, 0 = transparent. same coin, different face, lowkey iconic.

that's the whole page, no filler, every flag and signature intact πŸ’– this came from perl v5.42.0, dated 2025-09-01, and the page itself is PDF::AP...tGState(3). mwah, go make some gorgeous PDFs πŸŽ€βœ¨πŸ¦‹

πŸ“¦ 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