From 29b9cf515ae301ab42c074d12ef6119fea93c8ce Mon Sep 17 00:00:00 2001 From: Svetlana Kulikova Date: Fri, 10 Oct 2025 17:05:53 +0300 Subject: [PATCH] Fix Clear Content --- PdfFile/PdfEditor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PdfFile/PdfEditor.cpp b/PdfFile/PdfEditor.cpp index be9aa01674..ff459d468c 100644 --- a/PdfFile/PdfEditor.cpp +++ b/PdfFile/PdfEditor.cpp @@ -3490,7 +3490,10 @@ void CPdfEditor::ClearPage() } pageObj.free(); - pDoc->ClearPage(); + if (m_nMode == Mode::Split || m_nMode == Mode::WriteNew) + pDoc->ClearPageFull(); + else + pDoc->ClearPage(); Page* pOPage = pPDFDocument->getCatalog()->getPage(nPageIndex); if (pOPage->isCropped())