Poppler Qt5  20.10.0
Public Member Functions | List of all members
Poppler::FontIterator Class Reference

#include <poppler-qt5.h>

Public Member Functions

int currentPage () const
 
bool hasNext () const
 
QList< FontInfonext ()
 
 ~FontIterator ()
 

Detailed Description

Iterator for reading the fonts in a document.

FontIterator provides a Java-style iterator for reading the fonts in a document.

You can use it in the following way:

Poppler::FontIterator* it = doc->newFontIterator();
while (it->hasNext()) {
QList<Poppler::FontInfo> fonts = it->next();
// do something with the fonts
}
// after doing the job, the iterator must be freed
delete it;
Since
0.12

The documentation for this class was generated from the following file:
Poppler::FontIterator::hasNext
bool hasNext() const
Checks whether there is at least one more page to iterate, ie returns false when the iterator is beyo...
Poppler::FontIterator::next
QList< FontInfo > next()
Returns the fonts of the current page and then advances the iterator to the next page.
Poppler::FontIterator
Iterator for reading the fonts in a document.
Definition: poppler-qt5.h:296