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