pdfSetProgressProc
Register callbacks to report long-running-operation progress
BOOL32 __stdcall pdfSetProgressProc(PPDF IPDF, void* Data, TInitProgressProc InitProgress, TProgressProc Progress);
function pdfSetProgressProc(const IPDF: PPDF; Data: Pointer; InitProgress: TInitProgressProc; Progress: TProgressProc): LongBool; stdcall;
Purpose. Register callbacks to report long-running-operation progress (e.g. during page rendering or document optimization).
Description. Verified write-only no-op. SetProgressProcH stores Data/InitProgress/Progress into FProgressData/ FProgressInitProc/FProgressProc; these three fields have exactly their declaration, the constructor's nil initialization, and this setter as their only references — none of the three registered callbacks is ever actually invoked anywhere in the codebase. No operation in this SDK reports progress through this mechanism regardless of what is registered.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Data | Stored but never passed to any callback invocation. |
InitProgress, Progress | Stored but never invoked. |
Return value. True if IPDF is valid.
Remarks. Despite the ABI shape strongly implying a working progress- reporting mechanism (matching the classic API's documented behavior for long operations), no such reporting occurs in this engine — do not rely on these callbacks firing.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetProgressProc
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.