@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/cjs/core/PDFContext.d.ts.map +1 -1
- package/cjs/core/PDFContext.js +4 -1
- package/cjs/core/PDFContext.js.map +1 -1
- package/dist/pdf-lib.esm.js +4 -1
- package/dist/pdf-lib.esm.js.map +1 -1
- package/dist/pdf-lib.esm.min.js +1 -1
- package/dist/pdf-lib.esm.min.js.map +1 -1
- package/dist/pdf-lib.js +4 -1
- package/dist/pdf-lib.js.map +1 -1
- package/dist/pdf-lib.min.js +1 -1
- package/dist/pdf-lib.min.js.map +1 -1
- package/es/core/PDFContext.d.ts.map +1 -1
- package/es/core/PDFContext.js +4 -1
- package/es/core/PDFContext.js.map +1 -1
- package/package.json +1 -1
- package/src/core/PDFContext.ts +3 -1
package/dist/pdf-lib.js
CHANGED
|
@@ -9325,7 +9325,10 @@
|
|
|
9325
9325
|
}
|
|
9326
9326
|
nextRef() {
|
|
9327
9327
|
this.largestObjectNumber += 1;
|
|
9328
|
-
|
|
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();
|