Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuDocument::expand ( const GURL codebase,
const GUTF8String idx_name 

Saves the document in the {new indirect} format when every page and component are stored in separate files. This format is ideal for web publishing because it allows direct access to any page and component. In addition to it, a top-level file containing the list of all components will be created. To view the document later in the plugin or in the viewer one should load the top-level file.

{ Plugin Warning}. This function will read contents of the whole document. Thus, if you call it from the main thread (the thread, which transfers data from Netscape), the plugin will block.

codebase - Name of the directory which the document should be expanded into.
idx_name - Name of the top-level file containing the document directory (basically, list of all files composing the document).

Definition at line 1761 of file DjVuDocument.cpp.

References get_djvm_doc().

Referenced by save_as().

   DEBUG_MSG("DjVuDocument::expand(): codebase='" << codebase << "'\n");
   GP<DjVmDoc> doc=get_djvm_doc();
   doc->expand(codebase, idx_name);

Generated by  Doxygen 1.6.0   Back to index