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

Method handleCm

src/text/text-extractor.ts:178–187  ·  view source on GitHub ↗

* Handle cm (concat matrix) operator.

(operands: ContentToken[])

Source from the content-addressed store, hash-verified

176 * Handle cm (concat matrix) operator.
177 */
178 private handleCm(operands: ContentToken[]): void {
179 this.state.concatMatrix(
180 this.getNumber(operands[0]),
181 this.getNumber(operands[1]),
182 this.getNumber(operands[2]),
183 this.getNumber(operands[3]),
184 this.getNumber(operands[4]),
185 this.getNumber(operands[5]),
186 );
187 }
188
189 /**
190 * Handle Tf (set font and size) operator.

Callers 1

processOperationMethod · 0.95

Calls 2

getNumberMethod · 0.95
concatMatrixMethod · 0.80

Tested by

no test coverage detected