API reference › Import & Output APIs
pdfGetEmbeddedFileCount
Returns the number of attachment slots on the instance (including tombstoned/deleted slots — see [pdfDeleteEmbeddedFile](#api-pdfdeleteembeddedfile)); 0 on an invalid handle.
Returns the number of attachment slots on the instance (including tombstoned/deleted slots — see pdfDeleteEmbeddedFile); 0 on an invalid handle. Valid handles are 1..count.
C
int32_t __stdcall pdfGetEmbeddedFileCount(PPDF IPDF);
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetEmbeddedFileCount(IntPtr IPDF);
Area
Import & Output APIs
Category
Getters
Exported names
pdfGetEmbeddedFileCount
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.