THotPDF.InterpretContentWithForms Method
THotPDF 的私有輔助方法:解譯內容串流,並在每個 Do 運算子的位置嵌入其所繪製 Form XObject 的字形
宣告
function InterpretContentWithForms(const Bytes: TBytes; const Resolver: IHPDFFontResolver; Resources: THPDFDictionaryObject; const CTM: array of Double; Depth: Integer; Chain: TList; out Glyphs: THPDFGlyphArray): boolean;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
Bytes | 已解碼的內容串流 |
Resolver | 串流所指字型資源的字型解碼器 |
Resources | 列出此串流字型與 XObject 的資源字典 |
CTM | 從串流空間到使用者空間的轉換 |
Depth | 串流的巢狀深度;超過 12 層的表單不會進入 |
Chain | 目前正在連同此串流一起解譯的 Form XObject 串流;已在鏈中的表單會被跳過 |
Glyphs | 接收按繪製順序排列的字形 |
傳回值
串流能夠解譯時為 True
使用說明
- 表單自身的 /Resources 提供其字型與巢狀表單;缺少時改用繪製它的串流之資源(ISO 32000-1 7.8.3)
- 表單先透過自身的 /Matrix、再透過繪製處的 CTM 對應到使用者空間,落在其 /BBox 之外的字形會被排除