/* Copyright 2020 the SumatraPDF project authors (see AUTHORS file).
   License: Simplified BSD (see COPYING.BSD) */

void CalcEndPageNo(TocItem* root, int nPages);

bool IsEngineMultiSupportedFile(const WCHAR* fileName, bool sniff = false);
EngineBase* CreateEngineMultiFromFile(const WCHAR* fileName, PasswordUI* pwdUI = nullptr);
EngineBase* CreateEngineMultiFromFiles(std::string_view dir, VecStr& files);
EngineBase* CreateEngineMultiFromDirectory(const WCHAR* dirW);
TocItem* CreateWrapperItem(EngineBase* engine);
