FlattenFormFieldTagged

表單欄位、標籤式 PDF、頁面內容

« 返回文件索引

把欄位外觀固定為靜態頁面內容,同時在結構樹中保留可及的表單語義

語法

function FlattenFormFieldTagged(Index,
  UpdateAppearance: Integer): Integer;

參數

ParameterDescription
Index1-based form field index
UpdateAppearance非零表示扁平化前重建正常外觀;零則使用目前外觀

傳回值

外觀完成繪製與標記、互動欄位移除時傳回 1;欄位、外觀、頁面或必要的既有標籤關聯無法取得則傳回 0

備註

Form

StructParent 結構元素,並從欄位描述、標題與值推導替代文字與實際文字 對既有的標籤式 PDF,Widget 必須有 OBJR 項目,其 ParentTree 值要指向一個含 的結構元素

該 Widget 的 OBJR;此方法把該關聯轉成頁面 marked content,不替換無關的結構保守轉換失敗時,現存欄位保持原狀

另見

FlattenFormFieldsTaggedOnPageRange, FlattenFormField, GetStructTreeItemText