* Handle TJ (show strings with positioning) operator.
(operands: ContentToken[])
| 218 | * Handle TJ (show strings with positioning) operator. |
| 219 | */ |
| 220 | private handleTJ(operands: ContentToken[]): void { |
| 221 | const array = operands[0]; |
| 222 | |
| 223 | if (array?.type !== "array") { |
| 224 | return; |
| 225 | } |
| 226 | |
| 227 | for (const item of array.items) { |
| 228 | if (item.type === "string") { |
| 229 | this.showString(item.value); |
| 230 | } else if (item.type === "number") { |
| 231 | // Position adjustment |
| 232 | this.state.applyTjAdjustment(item.value); |
| 233 | } |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Show a string and extract characters. |
no test coverage detected