Create RedacctInfo

This commit is contained in:
Svetlana Kulikova
2026-03-06 14:08:36 +03:00
parent eada4b4ebe
commit c057c8eb24
7 changed files with 33 additions and 1 deletions

View File

@ -140,7 +140,7 @@ bool CPdfFile::EditPdf(const std::wstring& wsDstFile)
m_pInternal->pReader->CleanUp();
RELEASEOBJECT(m_pInternal->pWriter);
m_pInternal->pWriter = new CPdfWriter(m_pInternal->pAppFonts, false, this, true, m_pInternal->wsTempFolder);
m_pInternal->pWriter = new CPdfWriter(m_pInternal->pAppFonts, false, this, false, m_pInternal->wsTempFolder);
RELEASEOBJECT(m_pInternal->pEditor);
m_pInternal->pEditor = new CPdfEditor(m_pInternal->wsSrcFile, m_pInternal->wsPassword, wsDstFile, m_pInternal->pReader, m_pInternal->pWriter);
@ -159,6 +159,12 @@ void CPdfFile::SetEditType(int nType)
if (nType == 1)
m_pInternal->pEditor->SetMode(CPdfEditor::Mode::WriteNew);
}
void CPdfFile::RedactInfo(int nFlag)
{
if (!m_pInternal->pEditor)
return;
m_pInternal->pEditor->RedactInfo(nFlag);
}
bool CPdfFile::EditPage(int nPageIndex)
{
if (!m_pInternal->pEditor)