diff --git a/pdf/src/document.js b/pdf/src/document.js index 66b885369d..1ca229ec5d 100644 --- a/pdf/src/document.js +++ b/pdf/src/document.js @@ -8002,7 +8002,7 @@ var CPresentation = CPresentation || function(){}; } }); - return nMax; + return Math.max(nMax, this.GetCurMaxApIdx()); }; CPDFDoc.prototype.Add_ContentChanges = function(Changes) { this.pagesContentChanges.Add(Changes);