GetTextRuns

內容串流編輯

描述

列舉程式中的顯示文字指令(Tj、TJ、' 與 "),並附上各指令當下生效的字型資源與字號

語法

Delphi

Function TPDFContentProgram.GetTextRuns: TPDFTextRunArray;

傳回值

TPDFTextRunArray,每個顯示文字指令一個 run,各自攜帶該指令繪製文字處生效的字型資源與字號

備註

run 回報的字型資源與字號,來自該指令當下生效的 Tf 運算子;走訪時會透過 q/Q 的保存與還原追蹤 Tf

要用別的文字取代某個 run 顯示的內容,請用 ReplaceTextRun;要按繪製區域找出指令,則用 FindInstructionsInRect

另請參閱

TPDFContentProgram, GetGraphicsState, FindInstructionsInRect, ReplaceTextRun, TPDFTextRun