SetDisplayListCaching

描繪

描述

啟用或停用顯示清單快取,讓頁面內容串流只解析一次,之後任何縮放都能重播而不必重新切 token

啟用後,每條內容串流第一次描繪時會在使用者空間記錄其運算子與運算元;之後的描繪重播錄製內容,並為新 DPI 重建頁面到裝置的矩陣。Form XObject 與 Type 3 字形程序各快取一份清單,遞迴因此也只付一次解析成本

語法

Delphi

Function TPDFlib.SetDisplayListCaching(Enabled: Integer): Integer;

DLL

int DLSetDisplayListCaching(int InstanceID, int Enabled);

ActiveX

Function PDFlib::SetDisplayListCaching(Enabled As Long) As Long

參數

Enabled1 開啟擷取/重播,0 關閉

傳回值

1The setting was applied

備註

用 GetDisplayListCacheInfo 檢視成效,用 ClearDisplayListCache 丟棄錄製內容

快取預設關閉;在您選擇加入之前,所有既有描繪所用的立即解析路徑維持不變