From e126ceef3cba0bc4e3ccd4978a01b81cf38792f2 Mon Sep 17 00:00:00 2001 From: Svetlana Kulikova Date: Fri, 10 Oct 2025 15:09:22 +0300 Subject: [PATCH] Fix bug 77348 --- PdfFile/PdfEditor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PdfFile/PdfEditor.cpp b/PdfFile/PdfEditor.cpp index 09105a07c8..be9aa01674 100644 --- a/PdfFile/PdfEditor.cpp +++ b/PdfFile/PdfEditor.cpp @@ -3593,6 +3593,7 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand) int nPageIndex = -1; Page* pPage = NULL; bool bEditPage = IsEditPage(); + PdfWriter::CDocument* pDoc = m_pWriter->GetDocument(); if (bEditPage) { nPageIndex = m_pReader->GetPageIndex(m_nEditPage, &pPDFDocument); @@ -3604,7 +3605,6 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand) else { cropBox = new PDFRectangle(); - PdfWriter::CDocument* pDoc = m_pWriter->GetDocument(); PdfWriter::CPage* pWPage = pDoc->GetCurPage(); cropBox->x2 = pWPage->GetWidth(); cropBox->y2 = pWPage->GetHeight(); @@ -3646,6 +3646,9 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand) gfx->endOfPage(); oContents.free(); RELEASEOBJECT(gfx); + + PdfWriter::CPage* pWPage = pDoc->GetCurPage(); + pWPage->SetFontType(PdfWriter::EFontType::fontUnknownType); } else {