fix SaveToFile when not create CPdfFile

This commit is contained in:
Kulikova Svetlana
2023-07-07 17:35:41 +03:00
parent f8dc7e2197
commit daa80a1662

View File

@ -828,7 +828,7 @@ void CPdfFile::CreatePdf(bool isPDFA)
int CPdfFile::SaveToFile(const std::wstring& wsPath)
{
if (!m_pInternal->pWriter)
return 0;
return 1;
return m_pInternal->pWriter->SaveToFile(wsPath);
}
void CPdfFile::SetPassword(const std::wstring& wsPassword)