1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

[edition] Add support for saving a newly added FreeText

This commit is contained in:
Calixte Denizet 2022-06-01 15:42:46 +02:00
parent 1816b5e926
commit 7773b3f5be
12 changed files with 409 additions and 23 deletions

View file

@ -47,7 +47,7 @@ class XRef {
getNewRef() {
if (this._newRefNum === null) {
this._newRefNum = this.entries.length;
this._newRefNum = this.entries.length || 1;
}
return Ref.get(this._newRefNum++, 0);
}