mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug 77348
This commit is contained in:
@ -3593,6 +3593,7 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
|
|||||||
int nPageIndex = -1;
|
int nPageIndex = -1;
|
||||||
Page* pPage = NULL;
|
Page* pPage = NULL;
|
||||||
bool bEditPage = IsEditPage();
|
bool bEditPage = IsEditPage();
|
||||||
|
PdfWriter::CDocument* pDoc = m_pWriter->GetDocument();
|
||||||
if (bEditPage)
|
if (bEditPage)
|
||||||
{
|
{
|
||||||
nPageIndex = m_pReader->GetPageIndex(m_nEditPage, &pPDFDocument);
|
nPageIndex = m_pReader->GetPageIndex(m_nEditPage, &pPDFDocument);
|
||||||
@ -3604,7 +3605,6 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
cropBox = new PDFRectangle();
|
cropBox = new PDFRectangle();
|
||||||
PdfWriter::CDocument* pDoc = m_pWriter->GetDocument();
|
|
||||||
PdfWriter::CPage* pWPage = pDoc->GetCurPage();
|
PdfWriter::CPage* pWPage = pDoc->GetCurPage();
|
||||||
cropBox->x2 = pWPage->GetWidth();
|
cropBox->x2 = pWPage->GetWidth();
|
||||||
cropBox->y2 = pWPage->GetHeight();
|
cropBox->y2 = pWPage->GetHeight();
|
||||||
@ -3646,6 +3646,9 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
|
|||||||
gfx->endOfPage();
|
gfx->endOfPage();
|
||||||
oContents.free();
|
oContents.free();
|
||||||
RELEASEOBJECT(gfx);
|
RELEASEOBJECT(gfx);
|
||||||
|
|
||||||
|
PdfWriter::CPage* pWPage = pDoc->GetCurPage();
|
||||||
|
pWPage->SetFontType(PdfWriter::EFontType::fontUnknownType);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user