[pdf] Fix for save

This commit is contained in:
Nikita Khromov
2025-10-12 17:59:28 +07:00
parent 9f3bb7c56f
commit 64928db37f

View File

@ -4510,11 +4510,12 @@
oMemory.WriteLong(originIndex != undefined ? originIndex : curIndex);
let oPageInfo = aPagesInfo[curIndex];
if (checkNeedRedactPage(oPageInfo)) {
writePageRedactsInfo(oPageInfo);
}
if ([AscPDF.CommandType.editPage, AscPDF.CommandType.addPage].includes(nCommandType)) {
if (checkNeedRedactPage(oPageInfo)) {
writePageRedactsInfo(oPageInfo);
}
let nRotAngle = this.getPageRotate(curIndex);
let bClearPage = !!oFile.pages[curIndex].isRecognized;
@ -5066,11 +5067,12 @@
oMemory.WriteLong(originIndex != undefined ? originIndex : curIndex);
let oPageInfo = aPagesInfo[curIndex];
if (checkNeedRedactPage(oPageInfo)) {
writePageRedactsInfo(oPageInfo);
}
if ([AscPDF.CommandType.editPage, AscPDF.CommandType.addPage].includes(nCommandType)) {
if (checkNeedRedactPage(oPageInfo)) {
writePageRedactsInfo(oPageInfo);
}
let nRotAngle = this.getPageRotate(curIndex);
let bClearPage = !!oFile.pages[curIndex].isRecognized;