diff options
author | Pino Toscano <pino@kde.org> | 2009-01-06 15:45:37 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2009-01-06 15:45:37 +0100 |
commit | bdc76dc811a6e4d5fd929bbdc8cd3300aeaea31f (patch) | |
tree | 57525ffb187eca4e19b0d52c47978b51978c39d8 /qt4 | |
parent | 6630e715714161cd803fc064f5d3cf880f42b0a5 (diff) |
[Qt4] apidox improvements for the font functions of Document; mark scanForFonts() as deprecated
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-qt4.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/qt4/src/poppler-qt4.h b/qt4/src/poppler-qt4.h index c7b1ec41..1a7c75e8 100644 --- a/qt4/src/poppler-qt4.h +++ b/qt4/src/poppler-qt4.h @@ -883,23 +883,35 @@ QString subject = m_doc->info("Subject"); /** The fonts within the PDF document. + This is a shorthand for getting all the fonts at once. + \note this can take a very long time to run with a large - document. You may wish to use the call below if you have more + document. You may wish to use a FontIterator if you have more than say 20 pages + + \see newFontIterator() */ QList<FontInfo> fonts() const; /** - \overload - + Scans for fonts within the PDF document. \param numPages the number of pages to scan \param fontList pointer to the list where the font information should be placed + \note with this method you can scan for fonts only \em once for each + document; once the end is reached, no more scanning with this method + can be done + \return false if the end of the document has been reached + + \deprecated this function is quite limited in its job (see note), + better use fonts() or newFontIterator() + + \see fonts(), newFontIterator() */ - bool scanForFonts( int numPages, QList<FontInfo> *fontList ) const; + Q_DECL_DEPRECATED bool scanForFonts( int numPages, QList<FontInfo> *fontList ) const; /** Creates a new FontIterator object for font scanning. @@ -912,6 +924,8 @@ QString subject = m_doc->info("Subject"); \param startPage the initial page from which start reading fonts + \see fonts() + \since 0.12 */ FontIterator* newFontIterator( int startPage = 0 ) const; |