property ThumbnailRevision: Int64; // read only
The revision starts at 1 for a freshly created component and advances whenever page content or document structure could make an existing preview wrong
Editing a page advances the revision through page invalidation, whilst document replacement and page-tree changes that clear all retained thumbnails advance it as well
TPdfThumbnailView observes this revision and discards its visible-page hot copies before repainting edited content, so an application can also compare a stored revision against the current value to detect that cached preview images it holds are out of date
ClearThumbnailCache does not advance the revision because it releases memory without changing document content
Rendered cache entries are keyed per page alongside a page revision, so unchanged pages can survive page-scoped invalidation whilst the document-wide value reported here still moves forward
SavedRevision := Pdf.ThumbnailRevision;
Pdf.UpdatePageObject(0, Matrix);
if Pdf.ThumbnailRevision <> SavedRevision then
RefreshPreviewImages;