* Restore graphics state (Q operator).
()
| 214 | * Restore graphics state (Q operator). |
| 215 | */ |
| 216 | restoreGraphicsState(): void { |
| 217 | const saved = this.graphicsStateStack.pop(); |
| 218 | |
| 219 | if (saved) { |
| 220 | this.ctm = saved.ctm; |
| 221 | this.charSpacing = saved.textState.charSpacing; |
| 222 | this.wordSpacing = saved.textState.wordSpacing; |
| 223 | this.horizontalScale = saved.textState.horizontalScale; |
| 224 | this.leading = saved.textState.leading; |
| 225 | this.rise = saved.textState.rise; |
| 226 | this.renderMode = saved.textState.renderMode; |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Modify current transformation matrix (cm operator). |