mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:55:47 +08:00
COfficeDrawingPageParams
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user