refactoring

This commit is contained in:
Kulikova Svetlana
2022-11-16 15:07:03 +03:00
parent da26208a1f
commit d2f8669552
5 changed files with 42 additions and 117 deletions

View File

@ -713,7 +713,8 @@ int CPdfFile::GetPagesCount()
{
if (!m_pInternal->pReader)
return 0;
return m_pInternal->pReader->GetPagesCount();
PDFDoc* pPdfDoc = m_pInternal->pReader->GetPDFDocument();
return pPdfDoc ? pPdfDoc->getNumPages() : 0;
}
void CPdfFile::GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY)
{