Logo Search packages:      
Sourcecode: djvulibre version File versions

int DjVuDocument::get_pages_num ( void   )  const

Returns the number of pages in the document. If there is still insufficient information about the document structure (initialization has not finished yet), #1# will be returned. Please refer to {init}() for details.

Definition at line 649 of file DjVuDocument.cpp.

Referenced by get_id_list(), DjVuDocEditor::get_thumbnails_num(), DjVuDocEditor::get_thumbnails_size(), DjVuDocEditor::init(), DjVuDocEditor::move_page(), DjVuDocEditor::page_to_id(), DjVuDocEditor::save_as(), DjVuDocEditor::set_page_name(), DjVuDocEditor::set_page_title(), wait_get_pages_num(), and DjVuDocEditor::write().

{
   check();
   if (flags & DOC_TYPE_KNOWN)
      if (doc_type==BUNDLED || doc_type==INDIRECT)
       return djvm_dir->get_pages_num();
      else if (flags & DOC_NDIR_KNOWN)
       return ndir->get_pages_num();
   return 1;
}


Generated by  Doxygen 1.6.0   Back to index