Explorar o código

PDF.js version 1.0.706

Yury Delendik %!s(int64=10) %!d(string=hai) anos
pai
achega
24aaa655a7
Modificáronse 5 ficheiros con 12 adicións e 12 borrados
  1. 1 1
      bower.json
  2. 4 4
      build/pdf.combined.js
  3. 4 4
      build/pdf.js
  4. 2 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.704",
+  "version": "1.0.706",
   "keywords": [
     "Mozilla",
     "pdf",

+ 4 - 4
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.704';
-PDFJS.build = '4ef7058';
+PDFJS.version = '1.0.706';
+PDFJS.build = 'f543e86';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -4449,7 +4449,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
       ctx.transform.apply(ctx, current.textMatrix);
       ctx.translate(current.x, current.y);
 
-      ctx.scale(textHScale, 1);
+      ctx.scale(textHScale, fontDirection);
 
       for (i = 0; i < glyphsLength; ++i) {
         glyph = glyphs[i];
@@ -4479,7 +4479,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         this.restore();
 
         var transformed = Util.applyTransform([glyph.width, 0], fontMatrix);
-        width = ((transformed[0] * fontSize + charSpacing) * fontDirection);
+        width = transformed[0] * fontSize + charSpacing;
 
         ctx.translate(width, 0);
         current.x += width * textHScale;

+ 4 - 4
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.704';
-PDFJS.build = '4ef7058';
+PDFJS.version = '1.0.706';
+PDFJS.build = 'f543e86';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -4493,7 +4493,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
       ctx.transform.apply(ctx, current.textMatrix);
       ctx.translate(current.x, current.y);
 
-      ctx.scale(textHScale, 1);
+      ctx.scale(textHScale, fontDirection);
 
       for (i = 0; i < glyphsLength; ++i) {
         glyph = glyphs[i];
@@ -4523,7 +4523,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         this.restore();
 
         var transformed = Util.applyTransform([glyph.width, 0], fontMatrix);
-        width = ((transformed[0] * fontSize + charSpacing) * fontDirection);
+        width = transformed[0] * fontSize + charSpacing;
 
         ctx.translate(width, 0);
         current.x += width * textHScale;

+ 2 - 2
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.704';
-PDFJS.build = '4ef7058';
+PDFJS.version = '1.0.706';
+PDFJS.build = 'f543e86';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.704",
+  "version": "1.0.706",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",