EndPageUpdate

頁面版面配置

說明

本頁介紹 PDFlibPas 中屬於「頁面版面配置」主題的 EndPageUpdate。API 名稱、參數、類別名稱、檔案名稱和字面值保持原樣,以便和 Delphi 函式庫及 DLL 進入點完全對應。

呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。 BeginPageUpdate, BeginPageUpdate

語法

Delphi

Function TPDFlib.EndPageUpdate: Integer;

ActiveX

Function PDFlib::EndPageUpdate() As Long

DLL

int DLEndPageUpdate(int InstanceID);

傳回值

0此值說明 EndPageUpdate 的呼叫結果。通常非零值表示成功,0 表示操作未完成。 BeginPageUpdate
1此值說明 EndPageUpdate 的呼叫結果。通常非零值表示成功,0 表示操作未完成。

備註

呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。 BeginPageUpdate

範例

// Add a watermark on every page of an existing document
PDF.LoadFromFile('contract.pdf', '');
for I := 1 to PDF.GetPageCount do
begin
  PDF.SelectPage(I);
  PDF.BeginPageUpdate;
    PDF.SetTextColor(0.85, 0.85, 0.85);
    PDF.SetFontSize(72);
    PDF.PrintText(100, 400, 'CONFIDENTIAL');
  PDF.EndPageUpdate;
end;
PDF.SaveToFile('contract-confidential.pdf');

另請參閱

呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。 BeginPageUpdate, SelectPage, PageCount