THotPDF.GetLoadedExtGStateInfo Method

Reads line width, line cap, line join, fill alpha, and stroke alpha from a named ExtGState resource on a loaded page

Declaration

function GetLoadedExtGStateInfo(PageIndex: Integer; const AGSName: AnsiString; out ALW: Single; out ALC, ALJ: Integer; out ACA, AStrokeCA: Single): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based loaded page index
AGSNameExtGState resource name with or without a leading slash
ALWReceives the /LW line width, or zero when absent
ALCReceives the /LC line-cap value, or zero when absent
ALJReceives the /LJ line-join value, or zero when absent
ACAReceives the /ca fill alpha, or zero when absent
AStrokeCAReceives the /CA stroke alpha, or zero when absent

Return value

Returns True when the named ExtGState resource is resolved

Usage notes

Related APIs