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
| Name | Purpose |
|---|---|
PageIndex | Zero-based loaded page index |
AGSName | ExtGState resource name with or without a leading slash |
ALW | Receives the /LW line width, or zero when absent |
ALC | Receives the /LC line-cap value, or zero when absent |
ALJ | Receives the /LJ line-join value, or zero when absent |
ACA | Receives the /ca fill alpha, or zero when absent |
AStrokeCA | Receives the /CA stroke alpha, or zero when absent |
Return value
Returns True when the named ExtGState resource is resolved
Usage notes
- AGSName may include or omit the leading slash
- Missing ExtGState entries return False and leave all output values at zero