Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuFile::get_djvu_bytestream ( const bool  included_too,
const bool  no_ndir = true 
)

The main function that encodes data back into binary stream. The data returned will reflect possible changes made into the chunk structure, annotation chunks and navigation directory chunk NDIR#.

{ Note:} The file stream will not have the magic #0x41,0x54,0x26,0x54# at the beginning.

Parameters:
included_too Process included files too.

Definition at line 2351 of file DjVuFile.cpp.

References ByteStream::create(), and IFFByteStream::flush().

Referenced by get_djvu_data().

{
   check();
   DEBUG_MSG("DjVuFile::get_djvu_bytestream(): creating DjVu raw file\n");
   DEBUG_MAKE_INDENT(3);
   const GP<ByteStream> pbs(ByteStream::create());
   const GP<IFFByteStream> giff=IFFByteStream::create(pbs);
   IFFByteStream &iff=*giff;
   GMap<GURL, void *> map;
   add_djvu_data(iff, map, included_too, no_ndir);
   iff.flush();
   pbs->seek(0, SEEK_SET);
   return pbs;
}


Generated by  Doxygen 1.6.0   Back to index