Create SplitPage

This commit is contained in:
Svetlana Kulikova
2025-02-10 18:34:57 +03:00
parent 896427db83
commit 7e8e4586ca
14 changed files with 308 additions and 45 deletions

View File

@ -51,6 +51,7 @@ public:
int GetError() { return 0; }
void Close() {}
bool EditPage(int nPageIndex, bool bSet = true) { return false; }
bool SplitPage(int nPageIndex) { return false; }
bool DeletePage(int nPageIndex) { return false; }
bool AddPage(int nPageIndex) { return false; }
bool EditAnnot(int nPageIndex, int nID) { return false; }
@ -166,6 +167,12 @@ bool CPdfFile::AddPage(int nPageIndex)
return false;
return m_pInternal->pEditor->AddPage(nPageIndex);
}
bool CPdfFile::SplitPage(int nPageIndex)
{
if (!m_pInternal->pEditor)
return false;
return m_pInternal->pEditor->SplitPage(nPageIndex);
}
HRESULT CPdfFile::ChangePassword(const std::wstring& wsPath, const std::wstring& wsPassword)
{
RELEASEOBJECT(m_pInternal->pWriter);