UpdateAppearanceStream

表单域

描述

为表单字段生成外观流。可为文本、下压按钮、选择、复选框和单选按钮表单字段生成外观流

语法

Delphi

Function TPDFlib.UpdateAppearanceStream(Index: Integer): Integer;

ActiveX

Function PDFlib::UpdateAppearanceStream(Index As Long) As Long

DLL

int DLUpdateAppearanceStream(int InstanceID, int Index);

参数

Index要处理的表单字段索引;第一个表单字段的索引为 1

返回值

0找不到表单字段,或无法为指定字段创建外观流
1指定表单字段的外观流已成功创建

说明

调用成功后,该部件会从当前会话的外观脏集合中移除如果生成失败,该部件仍保持脏状态,

NeedAppearances 也保持为 true,以便后续批量刷新可以重试

另请参阅

GetDirtyFormAppearanceCount, RegenerateDirtyFormAppearances, RegenerateFormAppearances