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

Method moveTextPosition

src/text/text-state.ts:139–142  ·  view source on GitHub ↗

* Move to start of next line (Td operator). * Translates the text line matrix and sets text matrix to it.

(tx: number, ty: number)

Source from the content-addressed store, hash-verified

137 * Translates the text line matrix and sets text matrix to it.
138 */
139 moveTextPosition(tx: number, ty: number): void {
140 this.tlm = this.tlm.translate(tx, ty);
141 this.tm = this.tlm.clone();
142 }
143
144 /**
145 * Move to start of next line and set leading (TD operator).

Callers 3

moveToNextLineMethod · 0.95
processOperationMethod · 0.80

Calls 2

translateMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected