Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuDocEditor::insert_page ( const GURL fname,
int  page_num = -1 

Inserts the referenced file into this DjVu document.

fname Name of the top-level file containing the image of the page to be inserted. This file must be a DjVu file and may include one or more other DjVu files.
If it include other DjVu files, the function will try to insert them into the document too. Should this attempt fail, the corresponding INCL# chunk will be removed from the referencing file and an exception will be thrown.

When inserting a file, the function may modify its name to be unique in the DjVu document.

page_num Position where the new page should be inserted at. Negative value means "append"

Definition at line 886 of file DjVuDocEditor.cpp.

References GListTemplate< TYPE, TYPE >::append(), and insert_group().

   DEBUG_MSG("DjVuDocEditor::insert_page(): furl='" << file_url << "'\n");

   GList<GURL> list;

   insert_group(list, page_num);

Generated by  Doxygen 1.6.0   Back to index