MCPcopy Create free account
hub / github.com/Robotips/uConfig / loadPage

Method loadPage

src/pdf_extract/controller/pdfloader.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool PDFLoader::loadPage(PDFPage *pdfPage)
44{
45 if (pdfPage->numPage() >= _document->numPages())
46 return false;
47
48 Poppler::Page *page = _document->page(pdfPage->numPage());
49 if (page == Q_NULLPTR)
50 return false;
51 pdfPage->_page = page;
52 pdfPage->_pageRect = QRect(QPoint(0, 0), page->pageSize());
53
54 return true;
55}
56
57void PDFLoader::loadBoxes(PDFPage *pdfPage)
58{

Callers

nothing calls this directly

Calls 2

numPageMethod · 0.80
pageMethod · 0.45

Tested by

no test coverage detected