mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Add split mode for PdfWriter
This commit is contained in:
@ -452,8 +452,10 @@ BYTE* CPdfFile::SplitPages(const int* arrPageIndex, unsigned int unLength, BYTE*
|
||||
{
|
||||
if (pChanges && nLength > 3)
|
||||
{
|
||||
m_pInternal->pWriter->SetSplit(true);
|
||||
CConvertFromBinParams* pParams = new CConvertFromBinParams();
|
||||
AddToPdfFromBinary(pChanges + 4, nLength - 4, pParams);
|
||||
m_pInternal->pWriter->SetSplit(false);
|
||||
}
|
||||
m_pInternal->pEditor->AfterSplitPages();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user