From daa80a16625a833d765a458f2b0f93783d64184a Mon Sep 17 00:00:00 2001 From: Kulikova Svetlana Date: Fri, 7 Jul 2023 17:35:41 +0300 Subject: [PATCH] fix SaveToFile when not create CPdfFile --- PdfFile/PdfFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PdfFile/PdfFile.cpp b/PdfFile/PdfFile.cpp index 458486ceb4..4f772ebbcf 100644 --- a/PdfFile/PdfFile.cpp +++ b/PdfFile/PdfFile.cpp @@ -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)