bool AsposeWords::removeWatermark(const QString& inputFile)
{
try {
auto doc = System::MakeObject<Document>(System::String(inputFile.toStdWString()));
RemoveHeaderFooterWatermarkTotaly(doc);
doc->Save(System::String(inputFile.toStdWString()));
return true;
} catch (System::Exception& sce) {
qCritical() << "AsposeWords::removeWatermark System::Exception: " << QString::fromStdU16String(sce.ToString().ToU16Str());
} catch (...) {
qCritical() << "AsposeWords::removeWatermark Unknown Exception...";
}
return false;
}
大文件在MakeObject 创建doc的时候就崩溃掉了