scan


Description:

public bool scan (int n_pages, out FontsIter iter)

Scans the document associated with this for fonts.

At most n_pages will be scanned starting from the current iterator. iter will point to the first font scanned.

Here is a simple example of code to scan fonts in a document

font_info = poppler_font_info_new (document);
while (poppler_font_info_scan (font_info, 20, &fonts_iter)) {
if (!fonts_iter)
continue; /* No fonts found in these 20 pages */
do {
/* Do something with font iter */
g_print ("Font Name: %s\n", poppler_fonts_iter_get_name (fonts_iter));
} while (poppler_fonts_iter_next (fonts_iter));
poppler_fonts_iter_free (fonts_iter);
}

Parameters:

this

a FontInfo

n_pages

number of pages to scan

iter

return location for a FontsIter

Returns:

true, if there are more fonts left to scan