mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fixes image and font embedding
This commit is contained in:
parent
0f862e7eb3
commit
de23d3791e
3 changed files with 27 additions and 3 deletions
|
@ -99,7 +99,7 @@ DOMElement.prototype = {
|
|||
attrList.push(i + '="' + xmlEncode(this.attributes[i]) + '"');
|
||||
}
|
||||
|
||||
if (this.nodeName === 'svg:tspan') {
|
||||
if (this.nodeName === 'svg:tspan' || this.nodeName === 'svg:style') {
|
||||
var encText = xmlEncode(this.textContent);
|
||||
return '<' + this.nodeName + ' ' + attrList.join(' ') + '>' +
|
||||
encText + '</' + this.nodeName + '>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue