|
|
@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.205'; |
|
|
|
PDFJS.version = '1.0.207'; |
|
|
|
PDFJS.build = '179f423'; |
|
|
|
PDFJS.build = '048c6d9'; |
|
|
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
@ -6547,7 +6547,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
paintChar: function (character, x, y) { |
|
|
|
paintChar: function CanvasGraphics_paintChar(character, x, y) { |
|
|
|
var ctx = this.ctx; |
|
|
|
var ctx = this.ctx; |
|
|
|
var current = this.current; |
|
|
|
var current = this.current; |
|
|
|
var font = current.font; |
|
|
|
var font = current.font; |
|
|
@ -20346,11 +20346,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { |
|
|
|
var isAddToPathSet = !!(state.textRenderingMode & |
|
|
|
var isAddToPathSet = !!(state.textRenderingMode & |
|
|
|
TextRenderingMode.ADD_TO_PATH_FLAG); |
|
|
|
TextRenderingMode.ADD_TO_PATH_FLAG); |
|
|
|
if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) { |
|
|
|
if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) { |
|
|
|
for (var i = 0; i < glyphs.length; i++) { |
|
|
|
var buildPath = function (fontChar) { |
|
|
|
if (glyphs[i] === null) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var fontChar = glyphs[i].fontChar; |
|
|
|
|
|
|
|
if (!font.renderer.hasBuiltPath(fontChar)) { |
|
|
|
if (!font.renderer.hasBuiltPath(fontChar)) { |
|
|
|
var path = font.renderer.getPathJs(fontChar); |
|
|
|
var path = font.renderer.getPathJs(fontChar); |
|
|
|
this.handler.send('commonobj', [ |
|
|
|
this.handler.send('commonobj', [ |
|
|
@ -20359,6 +20355,21 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { |
|
|
|
path |
|
|
|
path |
|
|
|
]); |
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}.bind(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0, ii = glyphs.length; i < ii; i++) { |
|
|
|
|
|
|
|
var glyph = glyphs[i]; |
|
|
|
|
|
|
|
if (glyph === null) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
buildPath(glyph.fontChar); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If the glyph has an accent we need to build a path for its
|
|
|
|
|
|
|
|
// fontChar too, otherwise CanvasGraphics_paintChar will fail.
|
|
|
|
|
|
|
|
var accent = glyph.accent; |
|
|
|
|
|
|
|
if (accent && accent.fontChar) { |
|
|
|
|
|
|
|
buildPath(accent.fontChar); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|