COfficeDrawingPageParams

This commit is contained in:
Svetlana Kulikova
2024-11-18 18:59:23 +03:00
parent c83e50d164
commit c1b01029df
10 changed files with 33 additions and 12 deletions

View File

@ -82,7 +82,7 @@ CPdfReader::CPdfReader(NSFonts::IApplicationFonts* pAppFonts)
SetCMapFile(NSFile::GetProcessDirectory() + L"/cmap.bin");
#else
globalParams->setDrawFormFields(gFalse);
//globalParams->setDrawAnnotations(gFalse);
globalParams->setDrawAnnotations(gFalse);
SetCMapMemory(NULL, 0);
#endif
@ -448,6 +448,15 @@ void CPdfReader::Close()
RELEASEOBJECT(m_pPDFDocument);
m_mFonts.clear();
}
void CPdfReader::SetParams(COfficeDrawingPageParams* pParams)
{
if (!pParams)
return;
GBool bDraw = pParams->m_bNeedDrawAnnotation ? gTrue : gFalse;
globalParams->setDrawFormFields(bDraw);
globalParams->setDrawAnnotations(bDraw);
}
int CPdfReader::GetError()
{