pdf-codec 5.3.31 → 5.3.32
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/dist/image/jbig2.cjs +1 -1
- package/dist/image/jbig2.js +1 -1
- package/package.json +1 -1
package/dist/image/jbig2.cjs
CHANGED
|
@@ -267,7 +267,7 @@ var Jbig2Decoder = class {
|
|
|
267
267
|
const at = template === 0 ? readAtPixels(cursor, 2) : [...require_image_jbig2_generic.NOMINAL_REFINEMENT_AT];
|
|
268
268
|
const page = this.requirePage();
|
|
269
269
|
const reference = require_image_jbig2_bitmap.createBitmap(region.width, region.height);
|
|
270
|
-
for (
|
|
270
|
+
for (const [index] of reference.data.entries()) reference.data[index] = require_image_jbig2_bitmap.getPixel(page.bitmap, region.x + index % reference.width, region.y + Math.floor(index / reference.width));
|
|
271
271
|
const mq = new require_image_jbig2_arith.MqDecoder(cursor.data, cursor.position, dataEnd);
|
|
272
272
|
const contexts = require_image_jbig2_arith.createArithContexts(require_image_jbig2_generic.REFINEMENT_CONTEXT_BITS[template] ?? REFINEMENT_TEMPLATE_0_CONTEXT_BITS);
|
|
273
273
|
const refined = require_image_jbig2_generic.decodeRefinementRegion(region.width, region.height, {
|
package/dist/image/jbig2.js
CHANGED
|
@@ -266,7 +266,7 @@ var Jbig2Decoder = class {
|
|
|
266
266
|
const at = template === 0 ? readAtPixels(cursor, 2) : [...NOMINAL_REFINEMENT_AT];
|
|
267
267
|
const page = this.requirePage();
|
|
268
268
|
const reference = createBitmap(region.width, region.height);
|
|
269
|
-
for (
|
|
269
|
+
for (const [index] of reference.data.entries()) reference.data[index] = getPixel(page.bitmap, region.x + index % reference.width, region.y + Math.floor(index / reference.width));
|
|
270
270
|
const mq = new MqDecoder(cursor.data, cursor.position, dataEnd);
|
|
271
271
|
const contexts = createArithContexts(REFINEMENT_CONTEXT_BITS[template] ?? REFINEMENT_TEMPLATE_0_CONTEXT_BITS);
|
|
272
272
|
const refined = decodeRefinementRegion(region.width, region.height, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-codec",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.32",
|
|
4
4
|
"description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on its own codec-owned LayoutDocument item model and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|