int32_t __stdcall pdfGetUsesTransparency(PPDF IPDF, int32_t PageNum);
function pdfGetUsesTransparency(const IPDF: PPDF; PageNum: Integer): Integer; stdcall;
Purpose. Report whether a specific page uses transparency features — a genuinely distinct function from pdfGetUseTransparency (Document Utility Settings, no s, document-global flag) and pdfGetDocUsesTransparency (Document Utility Settings, also document-global with a dropped Flags param) — despite the near-identical name, this one takes a real PageNum and reports a per-page value (GetUsesTransparencyVal, a distinct field/mechanism from the document-global GetUseTransparency).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
PageNum | 1-based target page. |
Return value. Non-zero if that page uses transparency; 0 if PageNum doesn't resolve or IPDF is invalid.
See also. pdfGetUseTransparency (the unrelated document-global sibling — do not confuse the two despite the near-identical names).
C# (P/Invoke)
public static extern int pdfGetUsesTransparency(IntPtr IPDF, int PageNum);
Getters
pdfGetUsesTransparency
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.