BOOL32 __stdcall pdfEnableImageCache(PPDF IPDF, uint32_t MaxImageCount, uint32_t Size);
function pdfEnableImageCache(const IPDF: PPDF; MaxImageCount, Size: Cardinal): LongBool; stdcall;
Purpose. Configure a document-level image-decode cache size limit (max cached image count and max cache byte size).
Description. Verified write-only no-op. Stores MaxImageCount into FImageCacheMax and Size into FImageCacheSize; both fields have exactly one reference each in the entire codebase — their own declaration and this setter. There is no image-decode cache anywhere in this SDK to actually bound; every image is decoded once at insertion time and its bytes stored directly in FImages (no re-decode-on-demand cache exists to limit).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
MaxImageCount, Size | Stored but never read anywhere. |
Return value. True if IPDF is valid; False otherwise.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfEnableImageCache
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.