Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuFile::get_anno ( void   ) 

Returns the annotation chunks (#"ANTa"# and #"ANTz"#). This function may be used even when the DjVuFile# has not been decoded yet. If all data has been received for this DjVuFile#, it will gather hidden text and return the result. If no hidden text has been found, ZERO# will be returned.

{ Summary:} This function will return complete annotations only when the {is_all_data_present}() returns TRUE#.

Definition at line 1847 of file DjVuFile.cpp.

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

{
  DEBUG_MSG("DjVuFile::get_text(void)\n");
  GP<ByteStream> gstr(ByteStream::create());
  get_anno(this, gstr);
  ByteStream &str=*gstr;
  if (!str.tell())
  { 
    gstr=0;
  }else
  {
    str.seek(0);
  }
  return gstr;
}


Generated by  Doxygen 1.6.0   Back to index