@adnsistemas/pdf-lib 2.6.0 → 2.6.1

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/pdf-lib.js CHANGED
@@ -9325,7 +9325,10 @@
9325
9325
  }
9326
9326
  nextRef() {
9327
9327
  this.largestObjectNumber += 1;
9328
- return PDFRef.of(this.largestObjectNumber);
9328
+ const ref = PDFRef.of(this.largestObjectNumber);
9329
+ if (this.snapshot)
9330
+ this.snapshot.markRefForSave(ref);
9331
+ return ref;
9329
9332
  }
9330
9333
  register(object) {
9331
9334
  const ref = this.nextRef();