mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fb2 update For bug 49447
This commit is contained in:
1004
Fb2File/Fb2File.cpp
1004
Fb2File/Fb2File.cpp
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,7 @@ void getDirectories(const std::wstring& sDirectory, std::vector<std::wstring>& a
|
||||
int main()
|
||||
{
|
||||
bool bBatchMode = false;
|
||||
bool bFromHtml = true;
|
||||
bool bFromHtml = false;
|
||||
if (bBatchMode)
|
||||
{
|
||||
// Директория файлов
|
||||
@ -91,7 +91,7 @@ int main()
|
||||
CFb2File oFile;
|
||||
|
||||
// Файл, который открываем
|
||||
std::wstring sFile = NSFile::GetProcessDirectory() + L"/../../../examples/res.fb2";
|
||||
std::wstring sFile = NSFile::GetProcessDirectory() + L"/res.fb2";
|
||||
|
||||
// Директория, где будем создавать docx
|
||||
std::wstring sOutputDirectory = NSFile::GetProcessDirectory() + L"/res";
|
||||
@ -100,7 +100,7 @@ int main()
|
||||
|
||||
if (bFromHtml)
|
||||
{
|
||||
sFile = NSFile::GetProcessDirectory() + L"/../../../examples/test.html";
|
||||
sFile = NSFile::GetProcessDirectory() + L"/test.html";
|
||||
oFile.FromHtml(sFile, sOutputDirectory + L"/res.fb2", L"Test Title");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user