Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuDocEditor::remove_page ( int  page_num,
bool  remove_unref = true 

Removes the specified page from the document. If remove_unref# is TRUE#, the function will also remove from the document any file, which became unreferenced due to the page's removal

Definition at line 1071 of file DjVuDocEditor.cpp.

References DjVuDocument::get_djvm_dir(), and remove_file().

Referenced by remove_pages().

   DEBUG_MSG("DjVuDocEditor::remove_page(): page_num=" << page_num << "\n");

      // Translate the page_num to ID
   GP<DjVmDir> djvm_dir=get_djvm_dir();
   if (page_num<0 || page_num>=djvm_dir->get_pages_num())
      G_THROW( ERR_MSG("DjVuDocEditor.bad_page") "\t"+GUTF8String(page_num));

      // And call general remove_file()
   remove_file(djvm_dir->page_to_file(page_num)->get_load_name(), remove_unref);

Generated by  Doxygen 1.6.0   Back to index