API referenceCore SDK

pdfGetUsesTransparency

Report whether a specific page uses transparency

C
int32_t __stdcall pdfGetUsesTransparency(PPDF IPDF, int32_t PageNum);
Delphi
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.

ParameterDescription
IPDFDocument handle.
PageNum1-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)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetUsesTransparency(IntPtr IPDF, int PageNum);
Area
Core SDK
Category

Getters

Exported names

pdfGetUsesTransparency

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.