TPDFVirtualFileInfos
Document loading, Virtual files
Description
TPDFVirtualFileInfos is an array of TPDFVirtualFileInfo records describing the registered in-memory files. PLGetVirtualFiles returns one record per entry and PLGetVirtualFilesByPrefix returns the entries whose folded names start with a prefix; neither copies payload bytes.
Each record is an independent value: changing the array does not change the registry, and later registry changes do not change an array already returned. Use it to enumerate job payloads and to read the revision needed for a conditional replacement.
Syntax
Delphi
TPDFVirtualFileInfos = Array Of TPDFVirtualFileInfo;Fields
| Name | Display name exactly as registered; lookup folds ASCII letters to lower case, so a case-only rename changes the display spelling |
|---|---|
| Size | Payload size in bytes, zero for an empty file |
| Revision | Positive process-wide revision assigned when the entry was last registered, edited, replaced, renamed or restored |
Remarks
Entries are returned in registry order, and the array is empty when the registry is empty or a prefix matches nothing.
PLVirtualFileRevision returns zero for a missing file, so a zero revision always means the entry is gone.
Prefix matching is a case-insensitive ASCII prefix comparison, so use a trailing slash in a job prefix such as mem://job-42/.
The listing allocates no payload data, so enumerating a large registry is cheap compared with reading the files.
See also
VirtualFileRegistry, GetVirtualFileCount, GetVirtualFileSize, RegisterVirtualFile, TPDFVirtualFileSnapshot