Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuImage::get_text ( void   )  const

Returns a pointer to a ByteStream containing all the hidden text. Returns NULL if no chunks have been collected yet.

Definition at line 240 of file DjVuImage.cpp.

References ByteStream::create(), ByteStream::seek(), and ByteStream::size().

Referenced by writeXML().

{
   GP<ByteStream> out = ByteStream::create();
   ByteStream &mbs = *out;
   if (file) 
   {
     file->get_text(mbs);
   }
   mbs.seek(0);
   if(!mbs.size())
   {
     out=0;
   }
   return out;
}


Generated by  Doxygen 1.6.0   Back to index