@libpdf/core 0.3.2 → 0.3.3

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/index.mjs CHANGED
@@ -11,7 +11,7 @@ import { createCMSECDSASignature } from "pkijs";
11
11
  import { base64 } from "@scure/base";
12
12
 
13
13
  //#region package.json
14
- var version = "0.3.2";
14
+ var version = "0.3.3";
15
15
 
16
16
  //#endregion
17
17
  //#region src/objects/pdf-array.ts
@@ -27267,7 +27267,7 @@ var PDFPage = class PDFPage {
27267
27267
  const ops = [pushGraphicsState()];
27268
27268
  if (gsName) ops.push(setGraphicsState(`/${gsName}`));
27269
27269
  if (options.rotate) {
27270
- const textWidth = options.maxWidth ?? Math.max(...lines.map((l) => l.width));
27270
+ const textWidth = options.maxWidth ?? max(lines.map((l) => l.width));
27271
27271
  let ascent;
27272
27272
  let descent;
27273
27273
  if (typeof font === "string") {
@@ -34278,7 +34278,7 @@ function writeComplete(registry, options) {
34278
34278
  });
34279
34279
  writeXRefStream(writer, {
34280
34280
  entries,
34281
- size: Math.max(0, ...entries.map((e) => e.objectNumber)) + 1,
34281
+ size: max(entries.map((e) => e.objectNumber), 0) + 1,
34282
34282
  xrefOffset,
34283
34283
  root: options.root,
34284
34284
  info: options.info,
@@ -34288,7 +34288,7 @@ function writeComplete(registry, options) {
34288
34288
  });
34289
34289
  } else writeXRefTable(writer, {
34290
34290
  entries,
34291
- size: Math.max(0, ...entries.map((e) => e.objectNumber)) + 1,
34291
+ size: max(entries.map((e) => e.objectNumber), 0) + 1,
34292
34292
  xrefOffset,
34293
34293
  root: options.root,
34294
34294
  info: options.info,