Draw space controller

This commit is contained in:
Jakub Melka
2019-01-20 17:55:06 +01:00
parent a9292a4c02
commit 7631265ba4
11 changed files with 458 additions and 17 deletions

View File

@@ -196,6 +196,12 @@ public:
/// Returns viewer preferences of the application
const PDFViewerPreferences* getViewerPreferences() const { return &m_viewerPreferences; }
/// Returns the page count
size_t getPageCount() const { return m_pages.size(); }
/// Returns the page
const PDFPage* getPage(size_t index) const { return &m_pages.at(index); }
/// Parses catalog from catalog dictionary. If object cannot be parsed, or error occurs,
/// then exception is thrown.
static PDFCatalog parse(const PDFObject& catalog, const PDFDocument* document);