Fix bug 70835

This commit is contained in:
Svetlana Kulikova
2024-10-18 17:42:19 +03:00
parent f8dd9fb085
commit f2aa34b5ce

View File

@ -190,6 +190,13 @@ int CPdfWriter::SaveToFile(const std::wstring& wsPath)
if (!IsValid())
return 1;
if (!m_pFont && !m_pFont14)
{
m_bNeedUpdateTextFont = false;
m_pFont14 = m_pDocument->CreateFont14(L"Helvetica", 0, PdfWriter::EStandard14Fonts::standard14fonts_Helvetica);
CommandDrawTextCHAR(32, 0, 0, 0, 0);
}
m_oCommandManager.Flush();
if (!m_pDocument->SaveToFile(wsPath))