mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
Fix bug 70835
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user