Redact writer

This commit is contained in:
Svetlana Kulikova
2025-09-25 17:48:08 +03:00
parent 1aa17ba09e
commit a7b0b0a938
8 changed files with 331 additions and 117 deletions

View File

@ -1328,10 +1328,14 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command)
case IAdvancedCommand::AdvancedCommandType::ShapeStart:
{
CShapeStart* pCommand = (CShapeStart*)command;
std::vector<double> arrRedact;
if (m_pInternal->pEditor)
{
m_pInternal->pEditor->AddShapeXML(pCommand->GetShapeXML());
arrRedact = m_pInternal->pEditor->WriteRedact(pCommand->GetRedactID());
}
// TODO Здесь необходимо наложить на рендер области редактов
return S_OK;
return m_pInternal->pWriter->AddRedact(arrRedact);
}
case IAdvancedCommand::AdvancedCommandType::ShapeEnd:
{