Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuFile::get_text ( void   ) 

Returns the text chunks (#"TXTa"# and #"TXTz"#). 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 hidden text layers only when the {is_all_data_present}() returns TRUE#.

Definition at line 1877 of file DjVuFile.cpp.

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

Referenced by change_text().

  GP<ByteStream> gstr(ByteStream::create());
  get_text(this, gstr);
  ByteStream &str=*gstr;
  if (!str.tell())
  return gstr;

Generated by  Doxygen 1.6.0   Back to index