Prevent updating the current transformation matrix when the stateStack is empty
This commit is contained in:
parent
1f7bfc8cc7
commit
564ae6e4f7
@ -1580,8 +1580,11 @@ var TextState = (function TextStateClosure() {
|
|||||||
push: function TextState_push() {
|
push: function TextState_push() {
|
||||||
this.stateStack.push(this.ctm.slice());
|
this.stateStack.push(this.ctm.slice());
|
||||||
},
|
},
|
||||||
pop: function TextStae_pop() {
|
pop: function TextState_pop() {
|
||||||
this.ctm = this.stateStack.pop();
|
var prev = this.stateStack.pop();
|
||||||
|
if (prev) {
|
||||||
|
this.ctm = prev;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
initialiseTextObj: function TextState_initialiseTextObj() {
|
initialiseTextObj: function TextState_initialiseTextObj() {
|
||||||
var m = this.textMatrix;
|
var m = this.textMatrix;
|
||||||
|
1
test/pdfs/issue3925.pdf.link
Normal file
1
test/pdfs/issue3925.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://patentimages.storage.googleapis.com/pdfs/US4441207.pdf
|
@ -23,6 +23,15 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue3925",
|
||||||
|
"file": "pdfs/issue3925.pdf",
|
||||||
|
"md5": "c5c895deecf7a7565393587e0d61be2b",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"firstPage": 1,
|
||||||
|
"lastPage": 1,
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{ "id": "issue1293",
|
{ "id": "issue1293",
|
||||||
"file": "pdfs/issue1293.pdf",
|
"file": "pdfs/issue1293.pdf",
|
||||||
"md5": "0a744b3bbf2fd8da0131fd3c01dd1e30",
|
"md5": "0a744b3bbf2fd8da0131fd3c01dd1e30",
|
||||||
|
Loading…
Reference in New Issue
Block a user