Fix save Redact

This commit is contained in:
Svetlana Kulikova
2025-10-01 14:30:46 +03:00
parent 964a3b455b
commit ad496ca7cd
7 changed files with 192 additions and 508 deletions

View File

@ -3579,7 +3579,9 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
pPage->getContents(&oContents);
PDFRectangle* box = pPage->getMediaBox();
Gfx* gfx = new Gfx(pPDFDocument, &oRedactOut, nPageIndex, pPage->getResourceDict(), 72.0, 72.0, box, NULL, 0);
gfx->saveState();
gfx->display(&oContents);
gfx->endOfPage();
oContents.free();
RELEASEOBJECT(gfx);
#endif