OnProgress
Events
Description
OnProgress receives progress notifications from long-running library operations.
Assign an event handler when the application needs to update a progress bar, log operation progress, or keep a user interface responsive while PDFlibPas processes documents.
Syntax
Delphi
type TPDFlibProgressEvent = procedure(Progress: Integer) of object;Property TPDFlib.OnProgress: TPDFlibProgressEvent Read FOnProgress Write FOnProgress;Parameters
| Progress | A progress value from 0 to 100. Some operations report scaled sub-progress while processing multiple files or document phases. |
|---|
Remarks
The handler is called only when the operation reports progress. Keep the handler lightweight and avoid re-entering PDFlibPas from inside the event.
Set OnProgress to nil when progress callbacks are no longer needed.