@divriots/pdfjs-dist 5.3.31-divriots.39 → 5.3.31-divriots.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/pdf.min.mjs +4 -4
- package/build/pdf.mjs +5 -5
- package/build/pdf.sandbox.min.mjs +2 -2
- package/build/pdf.sandbox.mjs +2 -2
- package/build/pdf.worker.min.mjs +3 -3
- package/build/pdf.worker.mjs +16 -20
- package/build/pdf.worker.mjs.map +1 -1
- package/image_decoders/pdf.image_decoders.min.mjs +2 -2
- package/image_decoders/pdf.image_decoders.mjs +2 -2
- package/legacy/build/pdf.min.mjs +4 -4
- package/legacy/build/pdf.mjs +5 -5
- package/legacy/build/pdf.sandbox.min.mjs +2 -2
- package/legacy/build/pdf.sandbox.mjs +2 -2
- package/legacy/build/pdf.worker.min.mjs +3 -3
- package/legacy/build/pdf.worker.mjs +16 -20
- package/legacy/build/pdf.worker.mjs.map +1 -1
- package/legacy/image_decoders/pdf.image_decoders.min.mjs +2 -2
- package/legacy/image_decoders/pdf.image_decoders.mjs +2 -2
- package/legacy/web/pdf_viewer.mjs +3 -3
- package/package.json +1 -1
- package/web/pdf_viewer.mjs +3 -3
package/build/pdf.worker.mjs
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* pdfjsVersion = 5.3.31-divriots.
|
|
25
|
-
* pdfjsBuild =
|
|
24
|
+
* pdfjsVersion = 5.3.31-divriots.41
|
|
25
|
+
* pdfjsBuild = 30a31ef35
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
;// ./src/shared/util.js
|
|
@@ -32775,10 +32775,8 @@ class PartialEvaluator {
|
|
|
32775
32775
|
case OPS.beginText:
|
|
32776
32776
|
textState.textMatrix = IDENTITY_MATRIX.slice();
|
|
32777
32777
|
textState.textLineMatrix = IDENTITY_MATRIX.slice();
|
|
32778
|
-
parsingText = true;
|
|
32779
32778
|
break;
|
|
32780
32779
|
case OPS.endText:
|
|
32781
|
-
parsingText = false;
|
|
32782
32780
|
break;
|
|
32783
32781
|
case OPS.endInlineImage:
|
|
32784
32782
|
const cacheKey = args[0].cacheKey;
|
|
@@ -32944,8 +32942,8 @@ class PartialEvaluator {
|
|
|
32944
32942
|
fn = OPS.setStrokeRGBColor;
|
|
32945
32943
|
break;
|
|
32946
32944
|
case OPS.setFillRGBColor:
|
|
32947
|
-
stateManager.state.fillColorSpace =
|
|
32948
|
-
args =
|
|
32945
|
+
stateManager.state.fillColorSpace = ColorSpaceUtils.rgb;
|
|
32946
|
+
args = ColorSpaceUtils.rgb.getRgb(args, 0);
|
|
32949
32947
|
textState.color = Util.makeHexColor(...args.map(Math.round));
|
|
32950
32948
|
break;
|
|
32951
32949
|
case OPS.setStrokeRGBColor:
|
|
@@ -33121,6 +33119,9 @@ class PartialEvaluator {
|
|
|
33121
33119
|
}
|
|
33122
33120
|
case OPS.setTextMatrix:
|
|
33123
33121
|
operatorList.addOp(fn, [new Float32Array(args)]);
|
|
33122
|
+
textState.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
33123
|
+
textState.setTextLineMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
33124
|
+
updateAdvanceScale();
|
|
33124
33125
|
continue;
|
|
33125
33126
|
case OPS.markPoint:
|
|
33126
33127
|
case OPS.markPointProps:
|
|
@@ -33176,11 +33177,6 @@ class PartialEvaluator {
|
|
|
33176
33177
|
case OPS.nextLine:
|
|
33177
33178
|
textState.carriageReturn();
|
|
33178
33179
|
break;
|
|
33179
|
-
case OPS.setTextMatrix:
|
|
33180
|
-
textState.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
33181
|
-
textState.setTextLineMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
33182
|
-
updateAdvanceScale();
|
|
33183
|
-
break;
|
|
33184
33180
|
case OPS.setCharSpacing:
|
|
33185
33181
|
textState.charSpacing = args[0];
|
|
33186
33182
|
break;
|
|
@@ -33808,16 +33804,16 @@ class PartialEvaluator {
|
|
|
33808
33804
|
textState.color = Util.makeHexColor(...cs.getRgb(args, 0).map(Math.round));
|
|
33809
33805
|
break;
|
|
33810
33806
|
case OPS.setFillGray:
|
|
33811
|
-
stateManager.state.fillColorSpace =
|
|
33812
|
-
textState.color = Util.makeHexColor(...
|
|
33807
|
+
stateManager.state.fillColorSpace = ColorSpaceUtils.gray;
|
|
33808
|
+
textState.color = Util.makeHexColor(...ColorSpaceUtils.gray.getRgb(args, 0).map(Math.round));
|
|
33813
33809
|
break;
|
|
33814
33810
|
case OPS.setFillCMYKColor:
|
|
33815
|
-
stateManager.state.fillColorSpace =
|
|
33816
|
-
textState.color = Util.makeHexColor(...
|
|
33811
|
+
stateManager.state.fillColorSpace = ColorSpaceUtils.cmyk;
|
|
33812
|
+
textState.color = Util.makeHexColor(...ColorSpaceUtils.cmyk.getRgb(args, 0).map(Math.round));
|
|
33817
33813
|
break;
|
|
33818
33814
|
case OPS.setFillRGBColor:
|
|
33819
|
-
stateManager.state.fillColorSpace =
|
|
33820
|
-
textState.color = Util.makeHexColor(...
|
|
33815
|
+
stateManager.state.fillColorSpace = ColorSpaceUtils.rgb;
|
|
33816
|
+
textState.color = Util.makeHexColor(...ColorSpaceUtils.rgb.getRgb(args, 0).map(Math.round));
|
|
33821
33817
|
break;
|
|
33822
33818
|
case OPS.setFillColorN:
|
|
33823
33819
|
cs = stateManager.state.fillColorSpace;
|
|
@@ -35117,8 +35113,8 @@ class TextState {
|
|
|
35117
35113
|
this.textMatrix = IDENTITY_MATRIX.slice();
|
|
35118
35114
|
this.textLineMatrix = IDENTITY_MATRIX.slice();
|
|
35119
35115
|
this.textRenderingMode = TextRenderingMode.FILL;
|
|
35120
|
-
this.fillColorSpace =
|
|
35121
|
-
this.strokeColorSpace =
|
|
35116
|
+
this.fillColorSpace = ColorSpaceUtils.gray;
|
|
35117
|
+
this.strokeColorSpace = ColorSpaceUtils.gray;
|
|
35122
35118
|
this.charSpacing = 0;
|
|
35123
35119
|
this.wordSpacing = 0;
|
|
35124
35120
|
this.leading = 0;
|
|
@@ -57763,7 +57759,7 @@ class WorkerMessageHandler {
|
|
|
57763
57759
|
docId,
|
|
57764
57760
|
apiVersion
|
|
57765
57761
|
} = docParams;
|
|
57766
|
-
const workerVersion = "5.3.31-divriots.
|
|
57762
|
+
const workerVersion = "5.3.31-divriots.41";
|
|
57767
57763
|
if (apiVersion !== workerVersion) {
|
|
57768
57764
|
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
|
|
57769
57765
|
}
|