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:transparencygoes0= opaque,1= transparent.opacitygoes1= 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