I has try to split pages with C++ but it always crashed
qDebug()<<“files temp:”<<filename+"_Temp";
auto pages = _dsdoc->get_Pages();
int pagecount = pages->get_Count();
for(int i=1;i<=pagecount;++i)
{
auto tempdoc = MakeObject();
auto pagepdf = pages->idx_get(i);//crash no reason
// tempdoc->get_Pages()->Add(pdfPage.);
SharedPtr options = MakeObject();
//
options->set_Format(DocSaveOptions::DocFormat::Doc);
tempdoc->Save(System::String(QString(filename+"_Temp/"+QString::number(i)+".doc").toStdWString()),
options);
}