Add ctPageRotate, AddPage and RemovePage

This commit is contained in:
Svetlana Kulikova
2024-04-08 17:17:06 +03:00
parent 8c522aa006
commit 4ddde8246d
8 changed files with 47 additions and 1 deletions

View File

@ -1158,6 +1158,7 @@ HRESULT CPdfFile::IsSupportAdvancedCommand(const IAdvancedCommand::AdvancedComma
case IAdvancedCommand::AdvancedCommandType::WidgetsInfo:
case IAdvancedCommand::AdvancedCommandType::ShapeStart:
case IAdvancedCommand::AdvancedCommandType::ShapeEnd:
case IAdvancedCommand::AdvancedCommandType::PageRotate:
return S_OK;
default:
break;
@ -1229,6 +1230,13 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command)
m_pInternal->pEditor->EndMarkedContent();
return S_OK;
}
case IAdvancedCommand::AdvancedCommandType::PageRotate:
{
CPageRotate* pCommand = (CPageRotate*)command;
if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage())
m_pInternal->pWriter->PageRotate(pCommand->GetPageRotate());
return S_OK;
}
default:
break;
}