MCPcopy Create free account
hub / github.com/LibPDF-js/core / handleTj

Method handleTj

src/text/text-extractor.ts:207–215  ·  view source on GitHub ↗

* Handle Tj (show string) operator.

(operands: ContentToken[])

Source from the content-addressed store, hash-verified

205 * Handle Tj (show string) operator.
206 */
207 private handleTj(operands: ContentToken[]): void {
208 const stringToken = operands[0];
209
210 if (stringToken?.type !== "string") {
211 return;
212 }
213
214 this.showString(stringToken.value);
215 }
216
217 /**
218 * Handle TJ (show strings with positioning) operator.

Callers 1

processOperationMethod · 0.95

Calls 1

showStringMethod · 0.95

Tested by

no test coverage detected